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

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

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

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

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

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

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


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

Seen: 1,227 times

Last updated: Dec 16 '13