Пример #1
0
        locals()[component] = True


if useSpreadsheet:
    spreadsheet.init(poseCollection, costCollection)


if useIk:
    def onIkStartup(ikServer, startSuccess):
        if startSuccess:
            app.getMainWindow().statusBar().showMessage('Planning server started.', 2000)
        else:
            app.showErrorMessage('Error detected while starting the matlab planning server. '
                                 'Please check the output console for more information.', title='Error starting matlab')

    ikServer.outputConsole = app.getOutputConsole()
    ikServer.infoFunc = app.displaySnoptInfo
    ikServer.connectStartupCompleted(onIkStartup)
    startIkServer()


if useAtlasDriver:
    atlasdriver.systemStatus.outputConsole = app.getOutputConsole()
    atlasdriverpanel.init(atlasDriver)
else:
    app.removeToolbarMacro('ActionAtlasDriverPanel')


if usePerception:
    segmentationpanel.init()
    cameraview.init()
Пример #2
0
if useSpreadsheet:
    spreadsheet.init(poseCollection, costCollection)

if useIk:

    def onIkStartup(ikServer, startSuccess):
        if startSuccess:
            app.getMainWindow().statusBar().showMessage(
                'Planning server started.', 2000)
        else:
            app.showErrorMessage(
                'Error detected while starting the matlab planning server. '
                'Please check the output console for more information.',
                title='Error starting matlab')

    ikServer.outputConsole = app.getOutputConsole()
    ikServer.infoFunc = app.displaySnoptInfo
    ikServer.connectStartupCompleted(onIkStartup)
    startIkServer()

if useAtlasDriver:
    atlasdriver.systemStatus.outputConsole = app.getOutputConsole()
    atlasdriverpanel.init(atlasDriver)
else:
    app.removeToolbarMacro('ActionAtlasDriverPanel')

if usePerception:
    segmentationpanel.init()
    cameraview.init()
    colorize.init()