mycobot

Crates.iomycobot
lib.rsmycobot
version0.4.0
sourcesrc
created_at2021-08-21 03:32:02.060185
updated_at2022-01-24 11:10:11.266003
descriptionMyCobot API in Rust.
homepagehttps://github.com/neka-nat/mycobot-rs
repositoryhttps://github.com/neka-nat/mycobot-rs
max_upload_size
id440200
size3,124,664
Shirokuma (k tanaka) (neka-nat)

documentation

http://neka-nat.github.io/mycobot-rs/mycobot/

README

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

Commit count: 23

cargo fmt