gz-rs
gz-rs copied to clipboard
Rust binding for Gazebo Transport
trafficstars
gz-rs
| crates | version |
|---|---|
| gz | |
| gz-msgs | |
| gz-transport |
Rust binding for Gazebo (not Gazebo Classic).
About Gazebo versions
This crate is supporting following versions of Gazebo.
- Fortress
- Garden (EOL)
- Harmonic
- Ionic
Gazebo version can be specified by feature flag (fortress, garden, harmonic or ionic). If not specified, the version is determined by using pkg-config. When multiple versions are installed, the newer version takes precedence. If you want to use an older version, set the feature flag as above.
[dependencies]
gz = { version = "0.9.0", features = ["harmonic"] }
Dependencies
- Gazebo
- gz-msgs
- gz-transport
- pkg-config
Examples
$ cargo run -p gz-examples --bin sub
Subscribed: Count 0
Subscribed: Count 1
Subscribed: Count 2
Subscribed: Count 3
Subscribed: Count 4
:
Execute the following in another terminal
$ cargo run -p gz-examples --bin pub
Publishing: Count 0
Publishing: Count 1
Publishing: Count 2
Publishing: Count 3
Publishing: Count 4
: