Gazebo Pacer

Settings for synchronized stepping between Gazebo and Simulink

  • Library:
  • Robotics System Toolbox / Gazebo Co-Simulation

Description

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.

Select the 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.

Ports

Output

expand all

Status of synchronization, output as either 0 or 1. A value of 0 indicates successful time syncing. A value of 1 means the simulations are out of sync.

Data Types: uint8

Parameters

expand all

Select from the Reset behavior drop-down. Choose to reset the Gazebo simulator time only, or both the simulator time and scene.

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.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced in R2019b