https://github.com/otl/rosrust_tutorial
sample project of rosrust(https://github.com/adnanademovic/rosrust)
https://github.com/otl/rosrust_tutorial
ros rosrust rust
Last synced: 3 months ago
JSON representation
sample project of rosrust(https://github.com/adnanademovic/rosrust)
- Host: GitHub
- URL: https://github.com/otl/rosrust_tutorial
- Owner: OTL
- License: mit
- Created: 2017-04-04T13:30:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-15T00:53:43.000Z (almost 6 years ago)
- Last Synced: 2025-01-20T01:45:44.985Z (5 months ago)
- Topics: ros, rosrust, rust
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Warning] This is old repo. Don't use!
You have to see https://github.com/adnanademovic/rosrust/tree/master/examples instead of this.
# rosrust tutorial
Tutorial code of [rosrust](https://github.com/adnanademovic/rosrust).
## How to build
```bash
$ cargo build
```## How to run
### run roscore
```bash
$ roscore
```### run publisher
```bash
$ cargo run --bin publisher
```or,
```bash
$ ./target/debug/publisher
```### run subscriber
```bash
$ cargo run --bin subscriber
```or
```bash
$ ./target/debug/subscriber
```## How to use other msg
### edit build.rs
Add more message to build.rs.
```rust
#[macro_use]
extern crate rosrust;rosmsg_main!("std_msgs/String", "more_msgs/SomeMsg");
```then, you can use msg::more_msgs::SomeMsg in the sample code.