Robotics StackExchange | Archived questions

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

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?

Asked by gustavo.velascoh on 2013-12-16 11:15:02 UTC

Comments

Answers

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.

Asked by Stefan Kohlbrecher on 2013-12-16 18:53:32 UTC

Comments