예제 #1
0
    def tasksCallback(self, data):
        ''' Local -> World Frame '''
        rospy.loginfo("  :: SENDING TASK MESSAGE :: ")
        taskInfo = data
        worldPos, worldHead = self.fConv.localToWorldFrame(
            data.taskLocation, 0)
        taskInfo.taskLocation = worldPos

        # EDIT: send through xbee instead of publishing
        str_msg = msgToString(taskInfo)
        self.txString(str_msg)
예제 #2
0
    def initCallback(self, data):
        ''' Local -> World Frame'''
        rospy.loginfo("  :: SENDING INITIALIZATION MESSAGE :: ")
        initInfo = data
        worldPos, worldHead = self.fConv.localToWorldFrame(
            data.homeLocation, data.nominalHeading)
        initInfo.homeLocation = worldPos
        initInfo.nominalHeading = worldHead

        # EDIT: send through xbee instead of publishing
        str_msg = msgToString(initInfo)
        self.txString(str_msg)
예제 #3
0
 def agentCallback(self, data):
     rospy.loginfo("Recevived agent msg")
     str_msg = msgToString(data)
     self.txString(str_msg)
예제 #4
0
 def agentCallback(self, data):
     print "Recevived agent msg"
     str_msg = msgToString(data)
     self.txString(str_msg)