Skip to main content

Crate gz_msgs

Crate gz_msgs 

Source
Expand description

§gz-msgs

crates.io

Rust implementation of Gazebo Messages using rust-protobuf.

Gazebo versionGazebo Messages version
Fortress (LTS)8.7.1
Garden (EOL)9.5.1
Harmonic (LTS)10.3.2
Ionic11.1.0
Jetty (LTS)12.0.1

This crate supports multiple versions of Gazebo Messages. The version is determined by the feature flag or by pkg-config.

If a feature flag (fortress, garden, harmonic, ionic, or jetty) is specified, messages from that version will be used. Specifying more than one will result in a compile error.

[dependencies]
gz-msgs = { version = "0.10.0", features = ["harmonic"] }

If no feature flag is specified, the version is determined using pkg-config. When multiple versions are installed, the newest takes precedence. To use an older version, set the feature flag as above.

§Note

For consistency with gz-transport, pkg-config checks the version of Gazebo Transport instead of Gazebo Messages. For example, if Garden’s gz-transport12 is installed alongside Harmonic’s libgz-msgs10, the garden version will be selected.

§Note

In docs.rs, documentation for all features are provided. However, when you use this crate, you can only use one of the modules, and its contents are re-exported directly under the crate.

Re-exports§

pub use gz_msgs_common::protobuf;

Modules§

gz_msgs9garden
Gazebo Message 9.5.1
gz_msgs10harmonic
Gazebo Message 10.3.2
gz_msgs11ionic
Gazebo Message 11.1.0
gz_msgs12jetty
Gazebo Message 12.x.x
ign_msgs8fortress
Gazebo Message 8.7.1