Robotics StackExchange | Archived questions

Deactivate /clock topic in gazebo ros plugins

Hi,

is it possible to deactivate the /clock-topic using gazebo with the ros_plugin? This causes conflicts, when also rosbags are replayed, when containing a own /clock topic.

Best regards!

Asked by Illuminatur on 2015-12-09 12:29:22 UTC

Comments

Answers

Not sure if there is built-in functionality for this, but the easiest way is probably remapping the clock topic away. Somewhere in your code there likely is launch code for the gazebo main process like this:

  <node name="gazebo" pkg="gazebo_ros" type="gzserver" args="$(arg world) $(arg args)" respawn="false" output="screen"/>

The remapping can easily be added:

<node name="gazebo" pkg="gazebo_ros" type="gzserver" args="$(arg world) $(arg args)" respawn="false" output="screen">
  <remap from="clock" to="clock_remap_away"/>
</node>

Asked by Stefan Kohlbrecher on 2015-12-09 13:42:12 UTC

Comments