Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unless your plugin timed out after 1 second of simulation time, the model will continue to act on the last command.
I suspect that rostopic pub is using wall clock and not simulation time to determine how fast it updates.

If you publish your updates faster, I suspect that will fix your issue. The other issue will be delay.

The communications can't go faster, so if there is a delay between your detection of an event and processing time and comms time for your updated topic, running faster simulation time, will increase the apparent delay in getting the updated signal.

Unless your plugin timed out after 1 second of simulation time, the model will continue to act on the last command.
It is integrating on the old command for more simulation time.

I suspect that rostopic pub is using wall clock and not simulation time to determine how fast it updates.

If you publish your updates faster, I suspect that will fix your issue. The other issue will be delay.

The communications can't go faster, so if there is a delay between your detection of an event and processing time and comms time for your updated topic, running faster simulation time, will increase the apparent delay in getting the updated signal.