43 roslib.load_manifest(
'pr2_gazebo')
49 if __name__ ==
'__main__':
50 rospy.init_node(
'pr2_simulate_torso_spring')
51 rospy.wait_for_service(
'/gazebo/apply_joint_effort')
53 apply_joint_effort = rospy.ServiceProxy(
'/gazebo/apply_joint_effort', ApplyJointEffort)
54 joint_name =
"torso_lift_joint" 56 start_time = rospy.Duration.from_sec(0)
57 duration = rospy.Duration.from_sec(-1)
60 except rospy.ServiceException, e:
61 print "Service did not process request: %s"%str(e)