[ROS2] Can I remap the node name of a yaml parameter file being used by a ROS2 python launch file?

asked 2020-05-28 23:03:19 -0500

ddengster gravatar image

Say I have a a config.yaml:

 some_node:
    ros__parameters:
        some_list: ['1', '2', '3', '4', 'some_string']

and I supply it into as an argument to the ROS2 python launch.actions.Node object below. I wish to rename some_node to another node name, is there a way to do it to the whole file? I tried remapping and it doesnt seem to work.

Node(
      package='moveit_ros_move_group',
      executable='move_group',
      parameters=[
        config_yaml_file]
)
edit retag flag offensive close merge delete

Comments

Would you not use the /** syntax (ie: wildcards)?

gvdhoorn gravatar image gvdhoorn  ( 2020-05-29 05:28:22 -0500 )edit