| Crates.io | mycobot |
| lib.rs | mycobot |
| version | 0.4.0 |
| created_at | 2021-08-21 03:32:02.060185+00 |
| updated_at | 2022-01-24 11:10:11.266003+00 |
| description | MyCobot API in Rust. |
| homepage | https://github.com/neka-nat/mycobot-rs |
| repository | https://github.com/neka-nat/mycobot-rs |
| max_upload_size | |
| id | 440200 |
| size | 3,124,664 |
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
