Exemplo n.º 1
0
 def __init__(self,outfile,runName,arDevice,arduinoDevice,highRes=False,markerSize=SMALLMARKER,
              recordVideo=False):
     launchFile = 'simple_bridge_normal.launch'
     self.hdfFilename = outfile
     self.temporyCSVFilename = createTempAndFileDirectory(getDefaultCSVFileName())
     self.temporaryUSBCamBagFilename = createTempAndFileDirectory(getDefaultBagFileName())
     logging.debug('The CSV TMP FILE: {0}: The Bag File:{1}'.format(self.temporyCSVFilename,
                                                                    self.temporaryUSBCamBagFilename))
     self.temporyCSVFilenameArduino = createTempAndFileDirectory(getDefaultCSVFileName())
     self.runNameArduino = getArduinoSubDirectory(runName)
     self.runName = getARSubDirectory(runName)
     self.runNameBase = runName
     #THE STRING USED TO START UP THE roslaunch sofiehdfformat_rosdriver' ROS launch file
     self.processString = \
         ['roslaunch',
         'sofie_ros',
         launchFile,
         'csvfilename:='+self.temporyCSVFilename,
         'videodeviceconnected:='+str(int(arDevice is not None)),
         'videodevice:='+str(arDevice),
         'arduinodeviceconnected:='+str(int(arduinoDevice is not None)),
         'arduinodevice:='+str(arduinoDevice),
         'arduinocsvfilename:='+self.temporyCSVFilenameArduino,
         'markersize:='+str(markerSize),
         'usbcamrosbag:='+self.temporaryUSBCamBagFilename,
         'usbcamtopic:='+USBCAMERATOPIC,
         'recordvideo:='+str(recordVideo).lower(),
         ];
     logging.debug('The Processing String for AR Listener: '+str(self.processString))
Exemplo n.º 2
0
def exportBagData(filename,runName):
    """ Exports the bag file from the sofiehdfformat file. """
    logging.debug(runName)
    totalRun =  getDefaultBagFile(getBagSubDirectory(runName))
    logging.debug(totalRun)
    outFileName = filename+'_'+getDefaultBagFileName()
    exportFile(filename,totalRun,outFileName)
    return outFileName
Exemplo n.º 3
0
 def __init__(self,
              outfile,
              runName,
              arDevice,
              arduinoDevice,
              highRes=False,
              markerSize=SMALLMARKER,
              recordVideo=False):
     launchFile = 'simple_bridge_normal.launch'
     self.hdfFilename = outfile
     self.temporyCSVFilename = createTempAndFileDirectory(
         getDefaultCSVFileName())
     self.temporaryUSBCamBagFilename = createTempAndFileDirectory(
         getDefaultBagFileName())
     logging.debug('The CSV TMP FILE: {0}: The Bag File:{1}'.format(
         self.temporyCSVFilename, self.temporaryUSBCamBagFilename))
     self.temporyCSVFilenameArduino = createTempAndFileDirectory(
         getDefaultCSVFileName())
     self.runNameArduino = getArduinoSubDirectory(runName)
     self.runName = getARSubDirectory(runName)
     self.runNameBase = runName
     #THE STRING USED TO START UP THE roslaunch sofiehdfformat_rosdriver' ROS launch file
     self.processString = \
         ['roslaunch',
         'sofie_ros',
         launchFile,
         'csvfilename:='+self.temporyCSVFilename,
         'videodeviceconnected:='+str(int(arDevice is not None)),
         'videodevice:='+str(arDevice),
         'arduinodeviceconnected:='+str(int(arduinoDevice is not None)),
         'arduinodevice:='+str(arduinoDevice),
         'arduinocsvfilename:='+self.temporyCSVFilenameArduino,
         'markersize:='+str(markerSize),
         'usbcamrosbag:='+self.temporaryUSBCamBagFilename,
         'usbcamtopic:='+USBCAMERATOPIC,
         'recordvideo:='+str(recordVideo).lower(),
         ]
     logging.debug('The Processing String for AR Listener: ' +
                   str(self.processString))