You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The second error happens because the targets in setup.py are 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-package and 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-description or bringup, we could add steps such as to rosdep install, apt-get install (for any missing packages), colcon build, and source install/setup.bash.
The text was updated successfully, but these errors were encountered:
Hi @YaraShahin, thanks for your feedback! You are right; we only support CMake packages for the robot description. the right thing to fix this would be to update the documentation to say this explicitly.
Hello,
When I use
setup-robot-description
to make a robot bringup package on top of an ament_python package created throughcreate-new-package
, the following happens:sed: can't read CMakeLists.txt: No such file or directory
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:
setup.py
are not updated to include the launch file, which is subsequently not installed during colcon build.Steps to reproduce (i was using docker rolling ubuntu22):
create-new-package
and choose ament_python as the build type.colcon build && source install/setup.bash && cd src/<pkg-name>
setup-robot-description my_robot
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:
xacro
,robot_state_publisher_gui
,...setup-robot-description
or bringup, we could add steps such as torosdep install
,apt-get install
(for any missing packages),colcon build
, andsource install/setup.bash
.The text was updated successfully, but these errors were encountered: