21 import cob_grasp_generation.msg
26 client.wait_for_server()
28 object_name = six.moves.input(
"Insert object name: ")
29 gripper_type = six.moves.input(
"Insert gripper_type: ")
33 while not rospy.is_shutdown():
37 goal = cob_grasp_generation.msg.ShowGraspsGoal(object_name, gripper_type, gripper_side, grasp_id,
True)
39 client.send_goal(goal)
40 client.wait_for_result()
41 success = client.get_result().success
45 six.moves.input(
"Enter for next grasp...")
46 grasp_id = grasp_id + 1
48 print(
"no more grasps")
51 if __name__ ==
'__main__':
53 rospy.init_node(
'show_grasp_client')
55 except rospy.ROSInterruptException:
56 print(
"program interrupted before completion")