https://github.com/eduidl/gz-rs
Rust binding for Gazebo Transport
https://github.com/eduidl/gz-rs
gazebo ignition-gazebo rust
Last synced: about 1 month ago
JSON representation
Rust binding for Gazebo Transport
- Host: GitHub
- URL: https://github.com/eduidl/gz-rs
- Owner: eduidl
- License: apache-2.0
- Created: 2023-04-05T00:24:46.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-25T14:46:02.000Z (about 1 month ago)
- Last Synced: 2025-04-25T14:49:04.851Z (about 1 month ago)
- Topics: gazebo, ignition-gazebo, rust
- Language: Rust
- Homepage:
- Size: 1.03 MB
- Stars: 15
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gz-rs
| crates | version |
| ------------ | ------------------------------------------------------------------------------------------------------- |
| gz | [](https://crates.io/crates/gz) |
| gz-msgs | [](https://crates.io/crates/gz-msgs) |
| gz-transport | [](https://crates.io/crates/gz-transport) |Rust binding for Gazebo (not Gazebo Classic).
## About Gazebo versions
This crate is supporting following versions of Gazebo.
- Fortress
- Garden (EOL)
- Harmonic
- IonicGazebo 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.
```toml
[dependencies]
gz = { version = "0.9.0", features = ["harmonic"] }
```## Dependencies
- Gazebo
- gz-msgs
- gz-transport
- pkg-config## Examples
```no_rust
$ 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
```no_rust
$ cargo run -p gz-examples --bin pub
Publishing: Count 0
Publishing: Count 1
Publishing: Count 2
Publishing: Count 3
Publishing: Count 4
:
```