Crates.io | realman |
lib.rs | realman |
version | 0.2.0 |
source | src |
created_at | 2024-11-08 01:28:11.086123 |
updated_at | 2024-11-15 09:10:07.504641 |
description | realman robot Rust SDK |
homepage | https://github.com/EchoRust/realman |
repository | https://github.com/EchoRust/realman |
max_upload_size | |
id | 1440691 |
size | 45,283 |
这是睿尔曼机械臂的 Rust SDK
,旨在帮助 Rust
开发者更好的对睿尔曼机械臂进行二次开发。
SDK
是根据官网 json
协议开发。官网链接
[dependencies]
realman = "0.2.0"
use realman::{traits::MotionTrait, ArmType, Realman, TrajectoryConnect};
fn main() {
let realman = Realman::default();
if let Ok(mut socket) = realman.connect() {
socket.movej(ArmType::Gen72([0; 7]), 50, 0, TrajectoryConnect::Now).ok();
for _ in 0..3 {
socket.set_joint_step(&[6, -15000], 50).ok();
socket.set_joint_step(&[6, 15000], 50).ok();
}
}
}
The MIT License (MIT)
Copyright (c) 2024-present, 李扬(Leon)