3 roslib.load_manifest(
'pr2_position_scripts')
10 rospy.init_node(
'torso_up')
12 oint_action', SingleJointPositionAction);
13 rospy.loginfo(
"torso_up: waiting for torso action server")
14 torso_action_client.wait_for_server()
15 rospy.loginfo(
"torso_up: torso action server found")
16 goal = SingleJointPositionGoal()
18 rospy.loginfo(
"torso_up: sending command to lift torso")
19 torso_action_client.send_goal(goal)
20 torso_action_client.wait_for_result(rospy.Duration(30))