Skip to content
Back to skills

Gazebo Sim Knowledge Patch

ASecurity

Gazebo Sim

  • 25 stars
  • 0 votes
  • 0 copies
  • 14 views
  • Added September 5, 2026
developmentgorubyc++expressapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 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/badge)](https://www.skillsdirectory.com/skills/nevaberry-gazebo-sim-knowledge-patch)

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

Use this skill when migrating Gazebo Sim code or GUI plugins, configuring
simulation systems, or diagnosing runtime and build behavior. Load the relevant
topic reference for detailed behavior, examples, and source attribution.

## Reference index

| Reference | Topics |
| --- | --- |
| [Migration, Build, and Packaging](references/migration-build-and-packaging.md) | Removed APIs, package names, Bazel, dependencies, release support, API and ABI compatibility |
| [GUI, Transport, and ROS](references/gui-transport-and-ros.md) | Qt 6 plugins, GUI layouts, visualization, platform behavior, Zenoh, ROS interfaces, WebSocket schemas |
| [Physics, Sensors, and Environment](references/physics-sensors-and-environment.md) | Geometry queries, inertia, forces, constraints, sensors, gravity, wind, particles |
| [Server, Runtime, and APIs](references/server-runtime-and-apis.md) | Startup and shutdown, standalone commands, execution order, entity management, reset, test fixtures |
| [Systems, Control, and Modeling](references/systems-control-and-modeling.md) | Velocity and joint control, vehicles, wheel slip, aerodynamics, batteries, mapping, entity semantics, SDF export |

## Migrate removed and changed APIs

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()` |

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

- Update calls from `systemTimeISO` to `systemTimeIso`.
- Since Gazebo Sim 8, `gz::sim::components::Component::typeName` has type
  `const char *`. Construct a `std::string` where string member functions are needed.
- When porting Gazebo Sim 6 `stats` subscribers, replace the header's `step`
  entry with the `stepping` field on `WorldStatistics`.

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

See [migration details](references/migration-build-and-packaging.md).

## Preserve control commands and execution order

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.

See [control systems](references/systems-control-and-modeling.md),
[runtime ordering](references/server-runtime-and-apis.md), and
[sensor behavior](references/physics-sensors-and-environment.md).

## Migrate GUI plugins and layouts

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

Check whether `gz::gui::App()` returned `nullptr` before dereferencing it.
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. Restore the other Scene3D controls
through `EntityContextMenuPlugin`, `InteractiveViewControl`, `CameraTracking`,
`MarkerManager`, `SelectEntities`, `Spawn`, and `VisualizationCapabilities`.

See [GUI migration and integration](references/gui-transport-and-ros.md).

## Account for packaging and changed runtime behavior

- Gazebo Sim 10 drops the major-version suffix from package names.
- The installation no longer includes the vendored `backward` files.
- The `gz` dispatcher replaces its Ruby-based CLI loader with direct launches
  of standalone applications. Both `gz sim` and `gz model` have standalone
  executables; `gz-sim-main` can run from a relocated installation.
- `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.
- Advanced LiftDrag uses a corrected moment calculation. Models tuned against
  earlier results can produce different aerodynamic moments after upgrading.
- A `UserCommands` service response reports the outcome of command execution,
  so clients can detect a command that fails during execution.

The references retain the individual behavior changes and their attribution.

## Configure inertia, forces, and constraints

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 from an SDF string registers the mesh inertia calculator, enabling
automatic inertia calculation for meshes loaded this way. The calculator accepts
mesh optimization parameters. Use the debug log to inspect automatically
computed inertial values for a model.

- Use `Link::AddForceInInertialFrame` for a force expressed in the link's inertial frame.
- Physics has a parameter for enabling fixed-constraint enforcement.
- Use `components::DetachableJointEnforceFixedConstraint` to request that
  enforcement for a detachable joint. Removing a model also removes its detachable joints.
- Custom systems can request collision-filter changes through
  `components::CollideBitmaskCmd` for the collide mask and
  `components::CategoryBitmaskCmd` for the category mask.
- Physics supports ray intersection queries against simulated geometry;
  Gazebo Sim can return a link AABB computed from its collision geometry.

See [physics and environment details](references/physics-sensors-and-environment.md).

## Control joints, vehicles, and environments

- `JointController` can target a joint in a nested model and disable active
  braking in force mode, allowing the joint to coast.
- `JointPositionController` supports changing PID parameters during simulation.
- `JointStatePublisher` exposes an update-rate parameter for joint-state publication.
- `DriveToPoseController` drives a model to a target pose.
- `MecanumDrive` controls mecanum-wheel vehicles and provides odometry and transform output.
- `LookupWheelSlip` configures wheel slip from a slip map resolved through
  `common::findFile`. It accepts an 8-bit RGB lookup image; assign friction
  values to colors used for different surface patches.
- `LiftDrag` supports reversible airfoils with airflow from either direction
  along the chord.
- Use the gravity set command to change world gravity during simulation;
  the GUI also supports gravity updates. IMU measurements reflect those changes.
- When a rendering engine lacks voxel cone tracing (VCT), the Sensors system
  continues running with global illumination disabled.

See [systems and modeling](references/systems-control-and-modeling.md) and
[sensors and environment](references/physics-sensors-and-environment.md).

## Export occupancy maps and connect clients

The occupancy-grid system exports a map of occupied space from a simulated world.
In a world configured with it, 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'
```

Set `GZ_TRANSPORT_IMPLEMENTATION=zenoh` in the environment before launching Gazebo
to select Zenoh transport. Jetty supports the ROS `simulation_interfaces` API
through `ros_gz`, allowing ROS clients to use the same simulation interface across
compatible simulators.

The WebSocket server moved from `gz-launch` to Gazebo Sim. Its Protobuf
definitions include top-level enums, allowing clients to resolve fields that
reference those enums.

See [mapping](references/systems-control-and-modeling.md) and
[transport integration](references/gui-transport-and-ros.md).

## Build, operate, and test

When building Gazebo Sim from source, use the Jetty version of each dependency;
the build uses explicit versions to find Jetty packages. Gazebo Sim supports
building against Protocol Buffers v30.

Declare Gazebo dependencies in `MODULE.bazel` using Bzlmod. The Bazel Central
Registry carries Ionic and Jetty library releases and dependencies including
DARTSim, Bullet, FreeImage, and Assimp. Gazebo Sim's Bazel module uses the Jetty
release branches for Gazebo dependencies. Source builds with Bazel default to
Bazel 9.1.1.

Gazebo Sim handles `SIGTERM` as a graceful shutdown request and checks for an
already-running server at startup. Applications can request a simulation reset
through a public API, and `TestFixture` supports `ISystemReset` so fixture-based
tests can exercise system reset callbacks.

Each Gazebo codename keeps each library's major version fixed. Incompatible API
or ABI changes require a new library major version. Within a major version, a
binary built against one minor release can run against a newer minor release.
Rotary is an experimental rolling distribution built nightly from every Gazebo
library's `main` branch, with no scheduled end-of-life date.

See [build and release guidance](references/migration-build-and-packaging.md) and
[server and test APIs](references/server-runtime-and-apis.md).

Files in this skill

  • SKILL.md9.7 KB
  • coverage.json1.1 KB
  • references/gui-transport-and-ros.md1.8 KB
  • references/migration-build-and-packaging.md2.6 KB
  • references/physics-sensors-and-environment.md3.6 KB
  • references/server-runtime-and-apis.md1.9 KB
  • references/systems-control-and-modeling.md1.6 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.