增加机器人夹爪
This commit is contained in:
@@ -33,8 +33,8 @@ class RoboticArmMock:
|
||||
def rm_set_gripper_route(self,*args):
|
||||
print(f"rm_set_gripper_route:{args}")
|
||||
|
||||
def rm_set_gripper_position(self,*args):
|
||||
print(f"rm_set_gripper_position:{args}")
|
||||
def rm_set_gripper_position(self,*kargs):
|
||||
print(f"rm_set_gripper_position:{kargs}")
|
||||
|
||||
def rm_get_gripper_state(self):
|
||||
print("get_gripper_state")
|
||||
@@ -171,7 +171,7 @@ class RealmanMotorsBus(MotorsBus):
|
||||
|
||||
def write_arm(self, target_joint: list):
|
||||
ret = self.rmarm.rm_movej_follow(target_joint[:-1])
|
||||
if ret != 0:
|
||||
if ret != None:
|
||||
print("movej error:", ret[1])
|
||||
return ret
|
||||
|
||||
|
||||
Reference in New Issue
Block a user