Get ROS message times directly from Gazebo
Currently, the gazebo_ros_race_car_model
gets timestamps for all the messages that it publishes using its ROS node. This is problematic because the clock, which gets updated by gazebo_ros_pkgs
, only gets updated at a frequency of 10Hz. Because of this 10Hz update frequency, several consecutive messages published by gazebo_ros_race_car_model
have the same timestamps.
Instead, we should get this time directly from Gazebo (at least until gazebo_ros_pkgs
fixes this problem).