ignore "/use_sim_time" parameter
Hi,
is there a way to ignore the "/use_sim_time" parameter in a node, so that it uses the system time instead of clock? Thanks!
cheers Jonas
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
Hi,
is there a way to ignore the "/use_sim_time" parameter in a node, so that it uses the system time instead of clock? Thanks!
cheers Jonas
Use ros::WallTime
and ros::WallDuration
in your node.
Thanks for the hint! I wanted to use a ros::Timer, and your answer pointed me to the createWallTimer method. Jonas
@robotrover Please accept this answer using the checkmark at left so others know it's answered without reading the whole thread.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2012-04-24 04:22:37 -0500
Seen: 600 times
Last updated: Apr 24 '12
TransformListener Could not find a common time /base_link and /map
Does tf2 rely on current time or only on message header time?
ros2 use_sim_time and bagfile playback
ros::Time::now() always returns wall time [closed]
Node stuck at launching when launch with use_sim_time
Issue with ros::Time when using /use_sim_time
Another question about extrapolation in the past
What does %time entry mean in a .txt file obtained by writing rosbag data to it ?
How to synchronize rostopic publication and node's callback function ?