mycobot-rs
MyCobot API in Rust.
Getting started
use *;
Demo
Run example.
MyCobot API in Rust.
use mycobot::*;
pub fn main() -> Result<()> {
let mut mycobot = MyCobotSerialOperator::new("/dev/ttyUSB0", 115200);
mycobot.send_angles(&[0.0, 0.0, 0.0, 0.0, 30.0, 0.0], 50)?;
Ok(())
}
Run example.
sudo chmod 666 /dev/ttyUSB0
cargo run --release --example send_coords /dev/ttyUSB0