|
@@ -344,11 +344,11 @@ class Arduino:
|
|
|
except:
|
|
|
return None
|
|
|
|
|
|
- def gripper_control(self, operation):
|
|
|
+ def gripper_control(self, operation, angle):
|
|
|
''' control gripper: 1-open gripper down 2:stop 3:close gripper up 4:open gripper 5:close gripper
|
|
|
'''
|
|
|
#rospy.loginfo("gripper operation ID:" + str(operation))
|
|
|
- return self.execute_ack('z %d' %(operation))
|
|
|
+ return self.execute_ack('z %d %d' %(operation, angle))
|
|
|
|
|
|
def drive(self, AWheel, BWheel, CWheel):
|
|
|
''' Speeds are given in encoder ticks per PID interval
|