Gazebo | Ignition | Community
Ask Your Question

Real Time Timer stops after using world_control message

asked 2018-11-27 01:00:17 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

C:\fakepath\img.png I am using ~/world_control for controlling simulation using multi_sim_step. I used world_msg.set_multi_step(1000) to set sim time. As soon as I set this, SimTime is updating but RealTime don't change in Gazebo

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-11-27 11:40:31 -0500

chapulina gravatar image

I realize this can be confusing, but the real time indicator shows the wall time elapsed while the simulation was playing. However, when you're stepping the simulation, it is technically paused (note how you can see the play button). That's why real time is not elapsing and the real time factor is zero.

edit flag offensive delete link more


Thanks. Is there any way to step simulation without affecting real time factor and real time using transport api? or we can't do this while Gazebo stepping?

Gaurav gravatar imageGaurav ( 2018-11-30 03:38:38 -0500 )edit

I think you should be able to keep track of wall time inside your program/plugin that's doing the stepping.

chapulina gravatar imagechapulina ( 2018-12-01 13:01:41 -0500 )edit

Sure. Thanks.

Gaurav gravatar imageGaurav ( 2018-12-03 07:18:43 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-11-27 01:00:17 -0500

Seen: 112 times

Last updated: Nov 27 '18