Crates.io | rustypot |
lib.rs | rustypot |
version | |
source | src |
created_at | 2023-01-17 14:28:02.821935+00 |
updated_at | 2025-01-22 14:45:08.576214+00 |
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 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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 Discord community if you have any questions or want to share your projects.