hello-robot / stretch_ros2

ROS 2 packages for the Stretch mobile manipulators from Hello Robot Inc.
https://docs.hello-robot.com/0.2/stretch-tutorials/ros2/
51 stars 19 forks source link

URDF update script fails silently #90

Open hello-chintan opened 7 months ago

hello-chintan commented 7 months ago

The script update_urdf_after_xacro_change.py fails silently if the pip package urdf_parser_py is not installed. The error catching mechanism (implemented with the process return code) in the script fails to work as the commands in the script are executed through 'ros2 run' and 'ros2 launch' commands. These commands always return a 0 return code even if the underlying script has failed.

In the case of the update_urdf_after_xacro_change.py script the command 'ros2 launch stretch_calibration use_prior_head_calibration_to_update_urdf.launch.py' fails silently and returns a 0 return code irrespective of success.

A mechanism to catch these errors needs to be implemented or a guard condition needs to be added as a final step to ensure that the changes the failed script effects is verified after the script has finished executing.