Robotics StackExchange | Archived questions

how to set gazebo /clock publish rate foxy

I followed the instructions here to launch my gazebo, and something like this used to be working for me: gazebo -s libgazebo_ros_init.so __params:=/tmp/params.yaml

but at some point (I am thinking when I migrated to foxy), this stopped working.

How do I set the /clock topic publish rate in foxy?

Asked by johnconn on 2021-05-14 22:39:30 UTC

Comments

Answers

okay I should have tried harder to find the new foxy param file syntax because it is what i needed:

gazebo -s libgazebo_ros_init.so --ros-args --params-file /tmp/params.yaml

the terminal output complains about this

Error [parser.cc:403] Error parsing XML in file [/tmp/params.yaml]: Error document empty.

but it still makes the publish rate change

Asked by johnconn on 2021-05-14 23:18:51 UTC

Comments

Thanks for the solution. You're amazing.

Asked by HappySamuel on 2022-03-28 10:53:14 UTC