move_torso.py
Go to the documentation of this file.
00001 #! /usr/bin/python
00002 import roslib
00003 roslib.load_manifest('pr2_gazebo_benchmarks')
00004 
00005 import sys
00006 import rospy
00007 import actionlib
00008 from actionlib_msgs.msg import *
00009 from pr2_controllers_msgs.msg import *
00010 
00011 rospy.init_node('single_joint_position', anonymous=True)
00012 
00013 client = actionlib.SimpleActionClient('torso_controller/position_joint_action',
00014                                       SingleJointPositionAction)
00015 client.wait_for_server()
00016 
00017 client.send_goal(SingleJointPositionGoal(position = float(sys.argv[1])))
00018 client.wait_for_result()
00019 if client.get_state() == GoalStatus.SUCCEEDED:
00020     print "Success"


pr2_gazebo_benchmarks
Author(s): John Hsu
autogenerated on Thu Jan 2 2014 11:45:34