Skip to content
Back to skills

Gazebo Sim Knowledge Patch

ASecurity

Gazebo Sim

  • 25 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
developmentpythongorubyc++expresstestingapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill gazebo-sim-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gazebo Sim Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gazebo Sim Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-gazebo-sim-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-gazebo-sim-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gazebo-sim-knowledge-patch
description: Gazebo Sim
version: "10.7.0"
license: MIT
metadata:
  author: Nevaberry
---


# Gazebo Sim Knowledge Patch

Load this skill when migrating Gazebo Sim code or GUI plugins, building the
simulator, or working with physics, control systems, transport, and simulation
tests. Use the references for detailed behavior, version attribution, and
source links.

## Reference index

| Reference | Topics |
| --- | --- |
| [Migration, Build, and GUI](references/migration-build-gui.md) | API removals, Qt and QML migration, packaging, Bazel, GUI tools, platform behavior, release support and compatibility |
| [Physics and Environment](references/physics-environment.md) | Geometry queries, automatic inertia, forces, constraints, collision filtering, runtime physics, wind, aerodynamics, rendering |
| [Runtime, Integration, and Testing](references/runtime-integration-testing.md) | Step ordering, command lifetime, static plugin loading, reset, Python, servers, transport, ROS, WebSocket, executables |
| [Systems, Control, and Data](references/systems-control-data.md) | Vehicle and joint control, wheel slip, sensors, pose publication, occupancy maps, entity semantics, battery and emitter controls |

## Migration and changed behavior

### Removed path macros

Replace the removed `config.hh` path macros with runtime accessors.

| Removed macro | Runtime accessor |
| --- | --- |
| `GZ_SIM_GUI_CONFIG_PATH` | `gz::sim::getGUIConfigPath()` |
| `GZ_SIM_SYSTEM_CONFIG_PATH` | `gz::sim::getSystemConfigPath()` |
| `GZ_SIM_SERVER_CONFIG_PATH` | `gz::sim::getServerConfigPath()` |
| `GZ_SIM_PLUGIN_INSTALL_DIR` | `gz::sim::getPluginInstallDir()` |
| `GZ_SIM_GUI_PLUGIN_INSTALL_DIR` | `gz::sim::getGUIPluginInstallDir()` |
| `GZ_SIM_WORLD_INSTALL_DIR` | `gz::sim::getWorldInstallDir()` |

### Component registration and C++ names

In `gz::sim::components::Factory`, replace the removed `std::string` overloads
of `Register` with
`Register(const char *, ComponentDescriptorBase *, RegistrationObjectId)`.
Replace no-argument `Unregister()` with `Unregister(registrationId)`, using the
ID supplied to `Register`.

Since Gazebo Sim 8, `gz::sim::components::Component::typeName` has type
`const char *`. Construct a `std::string` at call sites that need string member
functions. Update calls from `systemTimeISO` to `systemTimeIso`.

Where possible, Gazebo deprecates an API in one major release and removes it in
the following major release. Use compile-time or runtime deprecation warnings
to identify calls to migrate before upgrading again.

### Qt and QML plugins

Build GUI plugins for Gazebo Sim 10 against Qt 6. In `gz-gui10` plugin QML,
prefix the exposed C++ object name with `_` in method calls and property
bindings: change `MyClass.FunctionFoo()` to `_MyClass.FunctionFoo()`.

Check whether `gz::gui::App()` returned `nullptr` before dereferencing the
application pointer. Let Gazebo GUI run the Qt event loop and avoid calling
`QCoreApplication::processEvents()` manually in Qt 6 plugins.

When migrating a Gazebo Sim 6 GUI layout, use `MinimalScene` for rendering and
`GzSceneManager` to synchronize scene entities. The migration reference lists
the companion plugins that restore the other Scene3D controls.

### Velocity commands and system ordering

Starting in Gazebo Sim 9, Physics deletes `*VelocityCmd` components after each
time step. Reapply the command on every step that needs velocity control,
including when the target velocity stays constant.

Starting in Gazebo Sim 9, `Physics::Update` and `UserCommands::PreUpdate` run
before default-priority systems in their respective phases. Use the priority
constants in `gz/sim/System.hh` when a custom system needs a specific order.

Starting in Gazebo Sim 9, `ForceTorque` writes directly to the entity component
manager during `Update` when the sensor entity has a `WrenchMeasured` component.
It uses `gz::sim::systems::kPostPhysicsSensorPriority`, so a default-priority
`Update` callback can read the current step's wrench after Physics and
ForceTorque have run.

### Message and physics behavior

`PosePublisher` suppresses messages when it has no poses to publish.
Subscribers should expect no message for an empty update.

A physics update message changes only the parameters it contains. Omitted
parameters retain their current values.

The Advanced LiftDrag system uses a corrected moment calculation. Models
tuned against earlier results can produce different aerodynamic moments after
upgrading.

When porting Gazebo Sim 6 subscribers to the `stats` topic, switch from the
header's `step` entry to the `stepping` field on `WorldStatistics`.

### Packaging and source builds

Gazebo Sim 10 drops the major-version suffix from its package names. When
building Gazebo Sim from source, use the Jetty version of each dependency;
the build uses explicit versions to find Jetty packages.

Declare Gazebo dependencies in `MODULE.bazel` using Bzlmod. Source builds with
Bazel default to Bazel 9.1.1. See the build reference for the version-specific
scope of Bazel support and its dependency releases.

Gazebo Sim dropped the vendored `backward` files from its installation.
The `gz` dispatcher replaces its Ruby-based CLI loader with direct launches
of standalone applications. The WebSocket server moved from `gz-launch` to
Gazebo Sim.

## Quick reference for simulation and integration

### Select transport and use ROS interfaces

Set `GZ_TRANSPORT_IMPLEMENTATION=zenoh` in the environment before launching
Gazebo to select the Zenoh transport implementation.

Jetty supports the ROS `simulation_interfaces` API through `ros_gz`, so ROS
clients can use the same simulation interface across compatible simulators.

### Export an occupancy map

Use the occupancy-grid system to export a map of occupied space from a
simulated world. In a world configured with that system, subscribe to
`/scan_image` for the map image and publish a Boolean to `/start_exploration`
to start the scan.

```sh
gz topic -t /start_exploration -m gz.msgs.Boolean -p 'data: true'
```

### Calculate inertia from a supplied mass

Set `<mass>` inside `<inertial auto="true">` on a link with collision geometry.
Gazebo uses the supplied mass to compute density and inertial properties.

```xml
<inertial auto="true">
  <mass>2.0</mass>
</inertial>
```

Loading a simulation from an SDF string registers the mesh inertia calculator,
enabling automatic inertia calculation for meshes loaded this way. The mesh
inertia calculator accepts mesh optimization parameters. Use the debug log to
inspect the inertial values computed automatically for a model.

### Control vehicles and joints

| System | Supported behavior |
| --- | --- |
| `DriveToPoseController` | Drive a model to a target pose |
| `MecanumDrive` | Control mecanum-wheel vehicles with odometry and transform output |
| `LookupWheelSlip` | Configure slip from a map resolved through `common::findFile`; accept an 8-bit RGB lookup image with friction values assigned to surface-patch colors |
| `JointController` | Target a joint inside a nested model; disable active braking in force mode to allow coasting |
| `JointPositionController` | Change PID parameters while the simulation is running |
| `JointStatePublisher` | Control joint-state publication frequency through an update-rate parameter |

### Apply forces and update the environment

Use `Link::AddForceInInertialFrame` to apply a force expressed in the link's
inertial frame. The Physics system has a parameter for enabling fixed-constraint
enforcement; use `components::DetachableJointEnforceFixedConstraint` to request
it for a detachable joint.

Custom systems can request collision-filter changes through
`components::CollideBitmaskCmd` for the collide mask and
`components::CategoryBitmaskCmd` for the category mask.

Use the gravity set command to change world gravity while a simulation is
running. The GUI also supports gravity updates, and IMU measurements reflect
gravity changes made during a simulation.

The simulator calculates airspeed as the magnitude of ground-relative velocity
minus wind velocity, using the wind triangle. `LiftDrag` can model reversible
airfoils with airflow from either direction along the chord.

### Runtime commands, reset, and testing

A `UserCommands` service response reports the outcome of executing the
command, so clients can detect a command that fails during execution.

Applications can request a simulation reset through a public API.
`TestFixture` supports `ISystemReset`, allowing fixture-based tests to exercise
system reset callbacks. Gazebo Sim corrects how it releases Python's GIL for
Python systems and `TestFixture`.

Gazebo Sim handles `SIGTERM` as a graceful shutdown request, so a process
supervisor can use it for an orderly stop. It checks for an already-running
server at startup. Distributed simulations support entity creation on network
secondaries.

### Rendering sensors and particles

When the rendering engine lacks voxel cone tracing (VCT), the Sensors system
continues running with global illumination disabled. The rendering scene
applies the configured particle scatter ratio.

Set `<topic>` on a link's `<particle_emitter>` to specify its control topic.
See the systems reference for the emitter XML example.

Files in this skill

  • SKILL.md9.2 KB
  • coverage.json1.1 KB
  • references/migration-build-gui.md4.1 KB
  • references/physics-environment.md4.2 KB
  • references/runtime-integration-testing.md3.3 KB
  • references/systems-control-data.md2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.