def __init__(self, name):
        self.name = name

        StandardMission.__init__(self, self.name, "/mission/all",
                                 self.callback)

        self.gate = VisionCollector("gate")
        self.run_gate = False
        self.drum = VisionCollector("drum")
        self.run_drum = False
        self.flare = VisionCollector("flare")
        self.run_flare = False
        self.mission_gate = rospy.ServiceProxy("/mission/gate", TwoBool)
        self.mission_flare = rospy.ServiceProxy("/mission/flare", TwoBool)
        self.mission_drum = rospy.ServiceProxy("/mission/drop", TwoBool)
        self.mission_golf = rospy.ServiceProxy("/mission/pick", TwoBool)

        self.start_time = time.time()

        self.start_yaw = 0

        self.over = self.over_distance
        self.type_over = "distance"
        #		self.over = self.over_time
        #		self.type_over = "time"

        self.echo(self.name, "FINISHED SETUP ALL MISSION")
 def __init__(self, name):
     self.name = name
     self.x = 100
     self.y = 100
     StandardMission.__init__(self, self.name, "/mission/drum",
                              self.callback)
     # rospy.Subscriber("/vision/estimate_distance", Point, self.vision_callback)
     self.request_data = rospy.ServiceProxy("/vision/golf", vision_srv_golf)
	def __init__( self , name ):
		self.name = name

		StandardMission.__init__( self , self.name , "/mission/qualification" , self.callback )

		self.vision = VisionCollector("qualification")

		print("QUALIFICATION FINISHED SETUP")
    def __init__(self, name):
        self.name = name

        StandardMission.__init__(self, self.name, "/mission/flare",
                                 self.callback)

        self.vision = VisionCollector("flare")

        print("FLARE FINISHED SETUP")
	def __init__( self , name ):
		self.name = name

		StandardMission.__init__( self , self.name , "/mission/gate" , self.callback )

		self.vision = VisionCollector("gate")

		self.echo( self.name ,  "GATE SETUP FINISHED")

		self.state = False
Example #6
0
    def __init__(self, name):
        self.name = name

        StandardMission.__init__(self, self.name, "/mission/pick",
                                 self.callback)

        self.vision = VisionCollector("drum")

        self.echo(self.name, "PICK GOLF SETUP FINISHED")

        self.state = False
Example #7
0
    def __init__(self, name):
        self.name = name

        StandardMission.__init__(self, self.name, "/mission/drop",
                                 self.callback)

        self.vision = VisionCollector("drum")

        self.state = False

        self.echo(self.name, "DROP BALL SEtuP FINISHER")
	def __init__( self , name ):
		self.name = name 

		StandardMission.__init__( self, self.name , "/mission/all" , self.callback )

		self.vision_gate = VisionCollector( "gate" )
		self.vision_drum = VisionCollector( "drum")

		self.echo( self.name , "Mission Gate Setup Finish")

		self.state = False

		self.start_time = time.time()
	def __init__( self , name ):
		self.name = name 

		StandardMission.__init__( self , self.name , "/mission/all" , self.callback )

		self.vision_gate = VisionCollector( "gate" )
		self.vision_flare = VisionCollector( "flare" )
		self.vision_drum = VisionCollector( "drum" )

		self.state = False

		self.echo( self.name , "ALL MISSION SETUP FINISHED")
		
		self.time_start = time.time()
Example #10
0
    def __init__(self, name):

        self.name = name

        StandardMission.__init__(self, self.name, "/mission/all",
                                 self.callback)