OTL / rosrust_tutorial

sample project of rosrust(https://github.com/adnanademovic/rosrust)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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.

How to build

$ cargo build

How to run

run roscore

$ roscore

run publisher

$ cargo run --bin publisher

or,

$ ./target/debug/publisher

run subscriber

$ cargo run --bin subscriber

or

$ ./target/debug/subscriber

How to use other msg

edit build.rs

Add more message to build.rs.

#[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.

About

sample project of rosrust(https://github.com/adnanademovic/rosrust)

License:MIT License


Languages

Language:Rust 100.0%