def runServerSideProcess(ROS_MASTER_URI, outpuDictQueue, quitEvent):
    """
    Publush the processed data to the ROS Master that the graph optimizer uses.
    """
    logger.info('Server side processor starting in LIVE mode')
    os.environ['ROS_MASTER_URI'] = ROS_MASTER_URI
    publishOnServer(outputDictQueue, quitEvent, logger, mode='live')
Пример #2
0
def runServerSideProcess(ROS_MASTER_URI, outpuDictQueue, quitEvent):
    """
    Publush the processed data to the ROS Master that the graph optimizer uses.
    """
    try:
        os.environ['ROS_MASTER_URI'] = ROS_MASTER_URI
        publishOnServer(outputDictQueue, quitEvent)
    except Exception as error:
        serverSideProcessException.put(obj=traceback.format_exc(),
                                       block=True,
                                       timeout=None)
def runServerSideProcess(ROS_MASTER_URI, outpuDictQueue, quitEvent):
    """
    Publish the processed data to the ROS Master that the graph optimizer uses.
    """
    if ACQ_SERVER_MODE == 'live':
        logger.info('Server side processor starting in LIVE mode')
        os.environ['ROS_MASTER_URI'] = ROS_MASTER_URI
        publishOnServer(outputDictQueue, quitEvent, logger, mode='live')
    elif ACQ_SERVER_MODE == 'postprocessing':
        logger.info('Server side processor starting in POSTPROCESSING mode')
        publishOnServer(outputDictQueue,
                        quitEvent,
                        logger,
                        mode='postprocessing')
def runServerSideProcess(ROS_MASTER_URI, outpuDictQueue, quitEvent):
    """
    Publush the processed data to the ROS Master that the graph optimizer uses.
    """
    os.environ['ROS_MASTER_URI'] = ROS_MASTER_URI
    publishOnServer(outputDictQueue, quitEvent)