ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

how to upgrade launch_ros

asked 2021-11-14 20:15:03 -0500

circle gravatar image

updated 2021-11-16 13:07:36 -0500

Hi there, I am new to ros and i am learning ros2 following the tutorials, i failed to reproduce the tutorial "Building a Visual Robot Model with URDF from Scratch" on "https://docs.ros.org/en/foxy/Tutorial...", and the reason is the version of launch_ros i am using is 0.11.4 but it seems this tutorial is based on version 0.15.0 (https://github.com/ros2/launch_ros/tags), actually the specific reason is ParameterValue is not defined in version 0.11.4. I am wondering how to solve this? thanks

edit retag flag offensive close merge delete

Comments

The tutorial should probably be adapted to Foxy. You can try building launch_ros from source using the galactic or master branch (you'll probably need to build launchas well), but you shouldn't have to do that. I opened an issue on the ROS 2 documentation repo: https://github.com/ros2/ros2_document...

christophebedard gravatar image christophebedard  ( 2021-11-15 09:02:58 -0500 )edit

thanks chris, i tried every previous tutorials and they are working fine. i didn't build launch_ros from source manually because i am worrying about the dependencies might be corrupted, am i right? or should i just wait for the feedback from the issue you post?

circle gravatar image circle  ( 2021-11-15 19:01:05 -0500 )edit

yeah, usually, it's a very bad idea, but in this case launch and launch_ros are kind of separate from the actual ROS 2 code, so it might just work. Just make sure you build both launch and launch_ros from source.

christophebedard gravatar image christophebedard  ( 2021-11-15 19:38:14 -0500 )edit
1

The feature (ParameterValue) was just backported to Foxy in https://github.com/ros2/launch_ros/pu..., so this should be fixed whenever the next Foxy patch is released (possibly early December 2021). In the meantime, you can build launch and launch_ros from source using the foxy branch and it should work.

christophebedard gravatar image christophebedard  ( 2021-11-16 13:04:58 -0500 )edit

that's great, thanks so much, chris!

circle gravatar image circle  ( 2021-11-16 18:50:52 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-11-16 19:48:58 -0500

Here's an answer to close this out properly.

If there is no newer launch_ros Debian package from apt, you need to build it and its dependencies (in this case, launch) using their foxy branch. In this case, this still wouldn't have worked because there was a missing feature. While it's usually a bad idea to mix packages from different distros, building from source using the master branches (since the feature is available in Rolling) might have worked in this case.

The required feature was backported to Foxy in https://github.com/ros2/launch_ros/pu..., so you need to build from source until launch_ros is released in the next Foxy patch.

edit flag offensive delete link more

Comments

ok, i will wait. thanks again!

circle gravatar image circle  ( 2021-11-21 18:57:44 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-11-14 20:15:03 -0500

Seen: 93 times

Last updated: Nov 16 '21