Exemple #1
0
def autoTest():
    import test
    if (test.isAutoTest()):
        test.activateAutoTestOption()
        debug("Hello World")
        logToChoregraphe("Hello Mr Choregraphe from abcdk.debug")
        print("getFileAndLinePosition: " + str(getFileAndLinePosition(0)))
Exemple #2
0
def autoTest():
    if (test.isAutoTest()):
        test.activateAutoTestOption()
        playSoundHearing()
        playSound("warning.wav", bDirectPlay=True)
        playSound("hello.wav")
        playSound("ho1.wav")
Exemple #3
0
def autoTest():
    if( test.isAutoTest() ):
        test.activateAutoTestOption();
        playSoundHearing();
        playSound( "warning.wav", bDirectPlay = True );
        playSound( "hello.wav" );
        playSound( "ho1.wav" );
Exemple #4
0
def autoTest():
    import test
    if( test.isAutoTest() ):
        test.activateAutoTestOption();
        debug( "Hello World" );
        logToChoregraphe( "Hello Mr Choregraphe from abcdk.debug" );
        print( "getFileAndLinePosition: " + str( getFileAndLinePosition( 0 ) ) );
Exemple #5
0
def autoTest():
    if (test.isAutoTest()):
        test.activateAutoTestOption()
        postQueueOrders([
            "import naoqitools", "ALLeds = naoqitools.myGetProxy( 'ALLeds')",
            "ALLeds.setIntensity( 'FaceLeds', 1.0 )",
            "ALLeds.fadeRGB( 'FaceLeds', 0xFF, 2.0 )"
        ])
Exemple #6
0
def autoTest():
    if (test.isAutoTest() or False):
        test.activateAutoTestOption()
        if (not system.isOnNao()):
            analyseSpeakSound("d:/pythonscript/TestSoundEnergy_16bit_mono.raw")
        playSoundHearing()
        playSound("warning.wav", bDirectPlay=True)
        playSound("hello.wav")
        playSound("ho1.wav")
Exemple #7
0
def autoTest():
    if( test.isAutoTest() or False ):
        test.activateAutoTestOption();        
        if( not system.isOnNao() ):
            analyseSpeakSound( "d:/pythonscript/TestSoundEnergy_16bit_mono.raw" );
        playSoundHearing();
        playSound( "warning.wav", bDirectPlay = True );
        playSound( "hello.wav" );
        playSound( "ho1.wav" );
def autoTest():
    if( not test.isAutoTest() and False ):
        return;
    test.activateAutoTestOption();
    print( "emotion.autotest..." );
    anColor = interpolateColorEmotion( [1, 0, 0, 0, 0, 0] );
    print( "anColor: " + str( anColor ) );
    
# autoTest - end

# autoTest();
Exemple #9
0
def autoTest():
    if( test.isAutoTest() or True ):
        test.activateAutoTestOption();
        print( "isOnNao(): '%s'" % str( isOnNao() ) );
        print( "isOnWin32(): '%s'" % str( isOnWin32() ) );
        print( "getNaoIP(): '%s'" % str( getNaoIP() ) );
        print( "getNaoIPs(): '%s'" % str( getNaoIPs() ) );
        backgroundTask = mySystemCall( "echo waiting 5s;sleep 5;echo end of waiting 5s", bWaitEnd = False );
        mySystemCall( "echo ; echo CECI EST UNE TRACE DE TEST; echo" );
        print( "backgroundTask_wait_5s isFinished: %s" % str( backgroundTask.isFinished() ) );
        time.sleep( 5 );
        print( "backgroundTask_wait_5s isFinished: %s" % str( backgroundTask.isFinished() ) );
        backgroundTask2 = mySystemCall( "echo waiting 5s (2);sleep 5;echo end of waiting 5s (2)", bWaitEnd = False );
        print( "killing task2 - before" );
        backgroundTask2.stop();
        print( "killing task2 - after" );
        time.sleep( 1 );
        print( "finished (after that, there should be no more trace...)" );
Exemple #10
0
def autoTest():
    if( test.isAutoTest() ):
        test.activateAutoTestOption();
        print( "isOnNao(): '%s'" % str( isOnNao() ) );
        print( "isOnWin32(): '%s'" % str( isOnWin32() ) );
        print( "getNaoIP(): '%s'" % str( getNaoIP() ) );
        print( "getNaoIPs(): '%s'" % str( getNaoIPs() ) );
        backgroundTask = mySystemCall( "echo waiting 5s;sleep 5;echo end of waiting 5s", bWaitEnd = False );
        mySystemCall( "echo ; echo CECI EST UNE TRACE DE TEST; echo" );
        print( "backgroundTask_wait_5s isFinished: %s" % str( backgroundTask.isFinished() ) );
        time.sleep( 5 );
        print( "backgroundTask_wait_5s isFinished: %s" % str( backgroundTask.isFinished() ) );
        backgroundTask2 = mySystemCall( "echo waiting 5s (2);sleep 5;echo end of waiting 5s (2)", bWaitEnd = False );
        print( "killing task2 - before" );
        backgroundTask2.stop();
        print( "killing task2 - after" );
        time.sleep( 1 );
        print( "finished (after that, there should be no more trace...)" );
def autoTest():
    if( test.isAutoTest() ):
        test.activateAutoTestOption();
        postQueueOrders( ["import naoqitools", "ALLeds = naoqitools.myGetProxy( 'ALLeds')", "ALLeds.setIntensity( 'FaceLeds', 1.0 )","ALLeds.fadeRGB( 'FaceLeds', 0xFF, 2.0 )" ] );