def gripper_move(gripper_client, width, speed, force, timeout=10): goal = GripperMoveGoal() goal.target_position = width goal.speed = speed goal.effort = force gripper_client.wait_for_server() gripper_client.send_goal(goal) gripper_client.wait_for_result(rospy.Duration.from_sec(5.))
def ripper_move(self, width, speed, force, timeout=10): #rospy.wait_for_service('/cobotta/get_motor_state', 5.0) #get_motor_state = rospy.ServiceProxy('/cobotta/get_motor_state', GetMotorState) #res = get_motor_state() #if res.state is not True: #print >> sys.stderr, " Please motor on." goal = GripperMoveGoal() goal.target_position = width goal.speed = speed goal.effort = force self.gripper_client.send_goal(goal)
def gripper_move(gripper_client, width, speed, effort): goal = GripperMoveGoal() goal.target_position = width goal.speed = speed goal.effort = effort gripper_client.send_goal(goal)
def gripper_move(gripper_client, width, speed, force, timeout=10): goal = GripperMoveGoal() goal.target_position = width goal.speed = speed goal.effort = force gripper_client.send_goal(goal)