start_interval_intersection.py
Go to the documentation of this file.
00001 #! /usr/bin/env python
00002 
00003 import roslib; roslib.load_manifest('camera_pose_calibration')
00004 import rospy
00005 import actionlib
00006 import sys
00007 
00008 from interval_intersection.msg import *
00009 
00010 if __name__ == '__main__':
00011     # get list of camera's from arguments
00012     args = rospy.myargv(sys.argv)
00013     if len(args) < 2:
00014         rospy.logfatal("Usage: start_interval_intersection ns_1 [ns_2] [ns_3]")
00015         raise
00016 
00017 
00018     rospy.init_node('start_interval_intersection')
00019     client = actionlib.SimpleActionClient('interval_intersection_config', ConfigAction) # ConfigAction, message in pr2_calibration stack, interval_intersection pkg
00020     print "Waiting for Server"
00021     client.wait_for_server()
00022     print "Found Server"
00023 
00024     # Fill in the goal here
00025     goal = ConfigGoal()
00026     goal.topics = [ a+'/settled_interval' for a in args[1:]]
00027     client.send_goal_and_wait(goal)
00028     print "Done sending goal"
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


camera_pose_calibration
Author(s): Vijay Pradeep, Wim Meeussen
autogenerated on Thu Aug 15 2013 10:18:08