Home | Tutorials | Wiki | Issues
Ask Your Question
0

Publication on Step Completion?

asked 2016-03-18 16:33:12 -0500

xanderai gravatar image

We've written a custom Gazebo (6.5.1) plugin so that we can single-step through time. That is, we start gazebo -u paused and then proceed through time step-by-step. A step is taken each time our plugin receives an external message to take a step.

Currently, we wait to receive a WorldStats publication from gazebo to consider a step completed. However, it appears these messages may be sent at regular time intervals, regardless of the step having completed.

Does Gazebo published a message that's more suitable to knowing that the step has been completed?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-03-21 11:02:10 -0500

nkoenig gravatar image

There is a command line program that you could use:

gz world -s

In your plugin you can compare the iterations value to see if a step has occurred.

edit flag offensive delete link more

Comments

Thanks. We were able to simplify our situation by either not caring about the `WorldStats` message and carrying on as usual, or have some guarantees by having the plugin deal with `iterations` value.

xanderai gravatar imagexanderai ( 2016-04-05 18:26:31 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-03-18 16:33:12 -0500

Seen: 187 times

Last updated: Mar 21 '16