Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eduidl/gz-rs

Rust binding for Gazebo Transport
https://github.com/eduidl/gz-rs

gazebo ignition-gazebo rust

Last synced: about 2 months ago
JSON representation

Rust binding for Gazebo Transport

Awesome Lists containing this project

README

        

# gz-rs

| crates | version |
| ------------ | ------------------------------------------------------------------------------------------------------- |
| gz | [![crates.io](https://img.shields.io/crates/v/gz.svg)](https://crates.io/crates/gz) |
| gz-msgs | [![crates.io](https://img.shields.io/crates/v/gz-msgs.svg)](https://crates.io/crates/gz-msgs) |
| gz-transport | [![crates.io](https://img.shields.io/crates/v/gz-transport.svg)](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
- Harmonic

Gazebo version can be specified by feature flag (`fortress`, `garden` or `harmonic`). 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.7.4", features = ["garden"] }
```

## 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
:
```