set robot_description in program?
Can I read in command argument and set robot_description in c++ program?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Can I read in command argument and set robot_description in c++ program?
Sure. It's just 'another parameter'.
Note: you will have to make sure that any other nodes that require that parameter will be started after your 'c++ program', or they'll most likely fail (most nodes (such as the robot_state_publisher
) try to access parameters only once, at init). This can be tricky, as there is no guaranteed order in which nodes are launched.
Letting roslaunch
set robot_description
as a parameter takes care of this automatically, as "parameters will be stored on the Parameter Server before any nodes are launched" (from here).
Asked: 2015-11-01 18:36:34 -0600
Seen: 297 times
Last updated: Nov 02 '15