Exemple #1
0
def main():
    rospy.init_node('release_cli')

    release_client = actionlib.SimpleActionClient(
        'release', BHandReleaseAction)

    release_client.wait_for_server()

    goal = BHandReleaseGoal()
    goal.release_mask = [True, True, True]
    goal.release_speed = [3.0, 3.0, 3.0]

    release_client.send_goal(goal)
    release_client.wait_for_result()

    print(release_client.get_result())

    return 0
    def _handle_release_hand_clicked(self, checked):
        goal = BHandReleaseGoal()
        goal.release_mask = self._get_grasp_mask()
        goal.release_speed = [3.0, 3.0, 3.0]

        self.release_client.send_goal(goal)
    def _handle_release_hand_clicked(self, checked):
        goal = BHandReleaseGoal()
        goal.release_mask = self._get_grasp_mask()
        goal.release_speed = [3.0, 3.0, 3.0]

        self.release_client.send_goal(goal)