手柄控制第一次提交

This commit is contained in:
2025-06-05 21:56:52 +08:00
parent a0ec9e1cb1
commit 83d6419d70
4 changed files with 201 additions and 246 deletions

View File

@@ -0,0 +1,17 @@
from Robotic_Arm.rm_robot_interface import *
armleft = RoboticArm(rm_thread_mode_e.RM_TRIPLE_MODE_E)
lefthandle = armleft.rm_create_robot_arm("169.254.128.18", 8080)
print("机械臂ID", lefthandle.id)
print("Left: ", armleft.rm_get_current_arm_state())
print("Left: ", armleft.rm_get_arm_all_state())
armleft.rm_movej([10, -125, 100, 100, 0, 0, -10], 50, 0, 0, 1)
# armleft.rm_movej_p([-0.185, 0.315, 0.080, -1.500, -0.800, -0.000], 50, 0, 0, 1)
# armleft.rm_movel([-0.185, 0.315, 0.080, -1.500, -0.800, -0.000], 50, 0, 0, 1)
# 断开所有连接,销毁线程
RoboticArm.rm_destory()