Change /clock rate in ROS 2 Gazebo
I'm trying to change the rate at which /clock
is being published in ROS 2 gazebo, because 10 Hz is far too slow for my application. I found an article here that suggests I can set the parameter publish_rate
to a number (in Hz as I understand it). The following, however, does not work for setting that parameter from my launch file.
Is this parameter just not exposed for some reason? Anybody have a suggestion for setting this?
gazebo = IncludeLaunchDescription(
PythonLaunchDescriptionSource([
os.path.join(
get_package_share_directory('gazebo_ros'), 'launch'), '/gazebo.launch.py'
]),
launch_arguments={
'gui': 'true',
'publish_rate': '1000.0',
}.items(),
)
Thanks,
--Hunter