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

Revision history [back]

click to hide/show revision 1
initial version

When I launch it from the terminal, I use command

rosrun master_sync_fkie master_sync _ignore_nodes:=[/gazebo*,/gazebo_gui*,/panda*]

ignore_nodes here is a private parameter of master_sync. The ROS wiki for the package master_sync_fkie documents those here. The specific rosrun command line syntax you're using is documented here.

Private parameters can be passed to nodes in .launch files by adding a rosparam or param element as a child of the node element.

When I launch it from the terminal, I use command

rosrun master_sync_fkie master_sync _ignore_nodes:=[/gazebo*,/gazebo_gui*,/panda*]

ignore_nodes here is a private parameter of master_sync. The ROS wiki for the package master_sync_fkie documents those here. The specific rosrun command line syntax you're using is documented here.

Private parameters can be passed to nodes in .launch files by adding a rosparam or param element as a child of the node element.

For the specific rosrun command line you show, that would look something like this:

<node name="my_master_sync_fkie" pkg="master_sync_fkie" type="master_sync">
  <rosparam>
    ignore_nodes:
      - /gazebo*
      - /gazebo_gui*
      - /panda*
  </rosparam>
</node>

Note that I used the "verbose list" form here, which I happen to like. You can also still use the single-line notation you used with rosrun.

When I launch it from the terminal, I use command

rosrun master_sync_fkie master_sync _ignore_nodes:=[/gazebo*,/gazebo_gui*,/panda*]

ignore_nodes here is a private parameter of master_sync. The ROS wiki for the package master_sync_fkie documents those here. The specific rosrun command line syntax you're using is documented here.

Private parameters can be passed to nodes in .launch files by adding a rosparam or param element as a child of the node element.

For the specific rosrun command line you show, that would look something like this:

<node name="my_master_sync_fkie" pkg="master_sync_fkie" type="master_sync">
  <rosparam>
    ignore_nodes:
      - /gazebo*
'/gazebo*'
      - /gazebo_gui*
'/gazebo_gui*'
      - /panda*
'/panda*'
  </rosparam>
</node>

Note that I used the "verbose list" form here, which I happen to like. You can also still use the single-line notation you used with rosrun.

Note also: the single quotes (') are probably not necessary, but when strings contain (what appear to be) globbing characters I'm always a bit careful and just wrap them in quotes.