Settings for synchronized stepping between Gazebo and Simulink
Robotics System Toolbox / Gazebo Co-Simulation
The Gazebo Pacer block synchronizes the simulation times between Gazebo and Simulink®. Synchronization is important for ensuring your Simulink model and the Gazebo simulation behave correctly. The block outputs a Boolean indicating successful synchronization. Synchronized stepping is only supported for one Gazebo simulation. Your entire model, including referenced models, can only contain one Gazebo Pacer block.
To ensure successful synchronization, connect to a Gazebo simulation. Open the block mask and click Configure Gazebo network and simulation settings.
Reset behavior to reset the Gazebo simulation on model
restart or only reset simulation time.
This block is part of a co-simulation interface between MATLAB® and Gazebo for exchanging data and sending commands. To see a basic example, check Perform Co-Simulation between Simulink and Gazebo.
Status— Status of synchronization
Status of synchronization, output as either
1. A value of
0 indicates successful time
syncing. A value of
1 means the simulations are out of sync.
Reset behavior— Reset simulation time or scene
Reset Gazebo simulation time(default) |
Reset Gazebo simulation time and scene
Select from the Reset behavior drop-down. Choose to reset the Gazebo simulator time only, or both the simulator time and scene.
Sample time— Sampling time of input
0.001(default) | positive
Set the Sample time parameter to step the Gazebo simulation at the given rate. This parameter must be a multiple of the maximum step size of the Gazebo solver.