Ask Your Question

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 1,143 times

Last updated: Dec 16 '13