pollen-robotics / rustamixel

Rust implementation of the protocol for Robotis Dynamixel motor.
Apache License 2.0
8 stars 0 forks source link

Dynamixel Rust library

Build Status

This crate provides a Rust implementation of the Robotis Dynamixel motor protocol. It is still a work in progress.

Its goal is to support:

Example

extern crate dynamixel;

use dynamixel::motors::XL_320;

fn main() {
    let mut c = dynamixel::with_protocol_v2(my_serial);

    loop {
        let pos = c.read_data(ID1, XL_320::PresentPosition).unwrap();
        c.write_data(ID2, XL_320::GoalPosition, pos).ok();
    }
}