Crates.io | rustypot |
lib.rs | rustypot |
version | 0.4.2 |
source | src |
created_at | 2023-01-17 14:28:02.821935 |
updated_at | 2023-08-22 14:19:05.884527 |
description | Package to communicate with Dynamixel motors. |
homepage | https://www.pollen-robotics.com |
repository | https://github.com/pollen-robotics/rustypot |
max_upload_size | |
id | 761016 |
size | 102,894 |
Rustypot is yet another communication library for robotis Dynamixel motors. It is currently used in the Reachy project.
use rustypot::{device::mx, DynamixelSerialIO};
use std::time::Duration;
fn main() {
let mut serial_port = serialport::new("/dev/ttyACM0", 1_000_000)
.timeout(Duration::from_millis(10))
.open()
.expect("Failed to open port");
let io = DynamixelSerialIO::v1();
loop {
let pos =
mx::read_present_position(&io, serial_port.as_mut(), 11).expect("Communication error");
println!("Motor 11 present position: {:?}", pos);
}
}
See https://docs.rs/rustypot for more information on APIs and examples.
This library is licensed under the Apache License 2.0.
Rustypot is developed and maintained by Pollen-Robotics. They developped open-source tools for robotics manipulation. Visit https://pollen-robotics.com to learn more or join the Dicord community if you have any questions or want to share your projects.