ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How can I get real-time/simulation-time ratio?

asked 2013-12-16 10:15:02 -0500

updated 2013-12-16 10:16:06 -0500

Hi, I am doing a simulation in Stage, and I want to compare the performance with and without stage window. With GUI there is the clock, which shows the real-time/simulation-time ratio. But, how can I get this value without using stage GUI?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2013-12-16 17:53:32 -0500

Haven´t worked with stage, but I assume it also uses the /clock topic to provide consistent timing across all nodes when running simulation (like gazebo does). In that case, you could listen to the /clock topic and get all time information you need from that. See also the Clock documentation on the ROS wiki.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-12-16 10:15:02 -0500

Seen: 1,237 times

Last updated: Dec 16 '13