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 | ros @ Robotics Stack Exchange |
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.
Asked: 2012-04-24 04:22:37 -0500
Seen: 634 times
Last updated: Apr 24 '12
When should you set use_sim_time to true
ros::Time::now() always returns wall time [closed]
Issue with ros::Time when using /use_sim_time
ros2 use_sim_time and bagfile playback
Does tf2 rely on current time or only on message header time?
Python Process Died Exit Code -11
What does %time entry mean in a .txt file obtained by writing rosbag data to it ?
"use_sim_time" parameter disabled tf [closed]
TransformListener Could not find a common time /base_link and /map