11 from naoqi_bridge_msgs.msg
import BodyPoseAction, BodyPoseGoal
13 if __name__ ==
'__main__':
14 if len(sys.argv) != 2:
15 sys.exit(
'\nUSAGE: %s pose_name\n\n' % sys.argv[0])
17 rospy.init_node(
'execute_pose')
20 if not poseClient.wait_for_server(rospy.Duration(3.0)):
21 rospy.logfatal(
"Could not connect to required \"body_pose\" action server, is the pose_manager node running?");
22 rospy.signal_shutdown();
25 goal.pose_name = str(sys.argv[1])
26 rospy.loginfo(
"Calling pose_manager for pose %s...", goal.pose_name)
29 poseClient.send_goal_and_wait(goal, rospy.Duration(5.0))