simple_deformable_request.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 import roslib; roslib.load_manifest('iri_deformable_analysis')
00003 
00004 from iri_deformable_analysis.srv import DoDeformableAnalysis, DoDeformableAnalysisRequest, DoDeformableAnalysisResponse
00005 from sensor_msgs.msg import PointCloud2
00006 import sys
00007 import rospy
00008 
00009 def request_deformable_analysis():
00010     rospy.wait_for_service('do_deformable_analysis')
00011 
00012     request   = DoDeformableAnalysisRequest()
00013     empty_pcl = PointCloud2()
00014 
00015     request.pcl_to_analyze     = empty_pcl
00016     request.fusion_criteria_id = 0
00017 
00018     try:
00019         service = rospy.ServiceProxy('do_deformable_analysis', DoDeformableAnalysis)
00020         print "Sent request"
00021         resp1 = service(request)
00022         print "Recieve request best pose is"
00023     except rospy.ServiceException, e:
00024         print "Service call failed: %s"%e
00025 
00026 if __name__ == "__main__":
00027     request_deformable_analysis();
00028 


iri_deformable_analysis
Author(s): Pol Monso, Arnau Ramisa, Jose Luis Rivero
autogenerated on Fri Dec 6 2013 21:15:35