Пример #1
0
    def _handle_grasp_hand_clicked(self, checked):
        goal = BHandGraspGoal()
        goal.grasp_mask = self._get_grasp_mask()
        goal.grasp_speed = [1.0, 1.0, 1.0]
        goal.grasp_effort = [1.0, 1.0, 1.0]
        goal.min_fingertip_radius = 0.0

        self.grasp_client.send_goal(goal)
Пример #2
0
    def _handle_grasp_hand_clicked(self, checked):
        goal = BHandGraspGoal()
        goal.grasp_mask = self._get_grasp_mask()
        goal.grasp_speed = [1.0, 1.0, 1.0]
        goal.grasp_effort = [1.0, 1.0, 1.0]
        goal.min_fingertip_radius = 0.0

        self.grasp_client.send_goal(goal)
Пример #3
0
def main():
    rospy.init_node('grasp_cli')

    grasp_client = actionlib.SimpleActionClient('grasp', BHandGraspAction)

    grasp_client.wait_for_server()

    goal = BHandGraspGoal()
    goal.grasp_mask = [True, True, True]
    goal.grasp_speed = [1.0, 1.0, 1.0]
    goal.grasp_effort = [1.0, 1.0, 1.0]
    goal.min_fingertip_radius = 0.00

    grasp_client.send_goal(goal)
    res = grasp_client.wait_for_result()

    print('goal: %s' % str(grasp_client.get_state()))
    print(res)

    return 0
Пример #4
0
def main():
    rospy.init_node('grasp_cli')

    grasp_client = actionlib.SimpleActionClient(
        'grasp', BHandGraspAction)

    grasp_client.wait_for_server()

    goal = BHandGraspGoal()
    goal.grasp_mask = [True, True, True]
    goal.grasp_speed = [1.0, 1.0, 1.0]
    goal.grasp_effort = [1.0, 1.0, 1.0]
    goal.min_fingertip_radius = 0.00

    grasp_client.send_goal(goal)
    res = grasp_client.wait_for_result()

    print('goal: %s' % str(grasp_client.get_state()))
    print(res)

    return 0