chiepomme / mycobot-rs

This is a Rust API for myCobot serial communication.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mycobot-rs

crates.io

myCobot API in Rust.

Getting started

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(())
}

Demo

Run example.

sudo chmod 666 /dev/ttyUSB0
cargo run --release --example send_coords /dev/ttyUSB0

send_coords

About

This is a Rust API for myCobot serial communication.

License:MIT License


Languages

Language:Rust 100.0%