move_to_door.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 import roslib; roslib.load_manifest('door_perception')
00004 import rospy
00005 from pr2_tasks.tasks import Tasks
00006 from pr2_python import base
00007 
00008 from articulation_models import track_utils
00009 from articulation_models.track_utils import *
00010 from door_perception import door
00011 
00012 
00013 def main():
00014     #tasks = Tasks()
00015     #tasks.move_arms_to_side()
00016 
00017     model_prior_get = rospy.ServiceProxy('model_prior_get', GetModelPriorSrv)
00018     request = GetModelPriorSrvRequest()
00019   try:            
00020       response = model_prior_get(request)
00021       print "got %d prior models"%len(response.model)
00022       for model in response.model:
00023         print model.name
00024         for param in model.params:
00025           print param.name, param.value
00026     except rospy.ServiceException: 
00027           print "failed to call service"
00028           pass
00029 
00030     #base = base.Base()
00031     #base.move_manipulable_pose(x, y, z)
00032 
00033 rospy.init_node('move_arms_to_side_node')
00034 main()
00035 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


door_perception_old
Author(s): Felix Endres
autogenerated on Wed Dec 26 2012 15:56:10