Home | Tutorials | Wiki | Issues
Ask Your Question
0

Real Time Timer stops after using world_control message

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

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
1

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

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

Comments

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 -0600 )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 -0600 )edit

Sure. Thanks.

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

Question Tools

1 follower

Stats

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

Seen: 36 times

Last updated: Nov 27