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

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)

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.