Skip to content

Latest commit

 

History

History
61 lines (38 loc) · 781 Bytes

File metadata and controls

61 lines (38 loc) · 781 Bytes

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