-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Hello,
When I use setup-robot-description to make a robot bringup package on top of an ament_python package created through create-new-package, the following happens:
- error:
sed: can't read CMakeLists.txt: No such file or directory - After the process successfully finishes and the workspace is built and sourced, the launch files can't run because of this error:
file 'view_my_robot.launch.xml' was not found in the share directory of package '<pkg-name>' which is at '<pkg-path>/share/robot_desc_pkg_py'
I believe these errors happen because:
- The first error: In https://github.com/StoglRobotics/ros_team_workspace/blob/master/scripts/setup-robot-description.bash?plain=1#L181, we try to edit CMakeLists.txt regardless of the package type (python ros2 packages don't have CMakeLists.txt).
- The second error happens because the targets in
setup.pyare not updated to include the launch file, which is subsequently not installed during colcon build.
Steps to reproduce (i was using docker rolling ubuntu22):
- Setup a new workspace and a new package using
create-new-packageand choose ament_python as the build type. - browse to the ws root and
colcon build && source install/setup.bash && cd src/<pkg-name> - run
setup-robot-description my_robot - You should see the CMakeLists.txt error
- After the process finishes, repeat step 2.
- Try to
ros2 launch robot_desc_pkg_py view_my_robot.launch.xml
I'm not sure if this an issue or expected behavior, but as far as I know, we can create robot description packages using ament_python.
On a different note, here a couple of suggestions that would save some debugging:
- For docker images, can we add to the Dockerfile instructions to install the most common packages (packages used to build robot_description and bringup and ros2_control) rightaway? i.e.
xacro,robot_state_publisher_gui,... - For the documentation regarding how to
setup-robot-descriptionor bringup, we could add steps such as torosdep install,apt-get install(for any missing packages),colcon build, andsource install/setup.bash.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels