#!/usr/bin/env python # -*- coding: utf-8 -*- from NaoCreator.setting import Setting Setting(nao_connected=False, debug=True, bypass_wait_for=False, nao_quest_v="2.1", load_cpt_data=False, ip="169.254.88.3", USE_MIC=False) from NaoQuest.questor import Questor from PlayerManager.player_manager import Player from NaoSimulator.get_mic_input import record Player("swan").save() q = Questor('PlanterBulbe', "swan") q.launch() q.player.save()
#!/usr/bin/env python # -*- coding: utf-8 -*- from NaoCreator.setting import Setting Setting(nao_connected=True, debug=True, bypass_wait_for=True, nao_quest_v="2.1", ip="169.254.88.3") from NaoCreator.Tool.stop import emergency_stop if __name__ == '__main__': emergency_stop()
# -*- coding: utf-8 -*- from NaoCreator.setting import Setting Setting(nao_connected=False, debug=True, ip="192.168.0.1") from Interceptor.interceptor import typemsg msg = raw_input("=> ") typemsg(msg)
# coding: utf-8 from NaoCreator.setting import Setting Setting(nao_connected=False, debug=True, bypass_wait_for=True, nao_quest_v="2.1", ip="192.168.0.1") from NaoQuest.questor import Questor # Player("swan").save() q = Questor('demo', "swan") q.launch() q.player.save()
print e try: Setting.naoSoundDetection.unsubscribe("SoundDetected") except Exception as e: print e # naoPosture.goToPosture("Sit", 1.0) def normal_stop(): """ Fonction qui arrête le programme normalement, pour arrêter le suiveur de visage et la reconaissance de visage :return: """ Setting.naoSpeech.say("Arret de nao scenario") Setting.naoLed.off("AllLeds") Setting.naoMotion.setStiffnesses("Head", 0.0) Setting.naoFaceDetectionRecognition.unsubscribe(Setting.MEMORY_FACE) Setting.naoFaceDetectionRecognition.enableRecognition(False) Setting.naoFaceTracker.stopTracker() # naoPosture.goToPosture("Sit", 1.0) quit() if __name__ == '__main__': from NaoCreator.setting import Setting Setting(nao_connected=True) emergency_stop() # sitdown()
#!/usr/bin/env python # -*- coding: utf-8 -*- from NaoCreator.setting import Setting Setting(nao_connected=False, debug=True, nao_quest_v="2.0", ip="192.168.0.1") from NaoCreator.Tool.mailor import nao_send_mail nao_send_mail("*****@*****.**", "test", "coucou c'est nao le petit robot c'est un test")
from NaoCreator.setting import Setting Setting(nao_connected=False, debug=True, nao_quest_v="2.1", bypass_wait_for=True, load_cpt_data=False) from NaoSensor.captor_data import * print cpt_giselle.data[0][CaptorData.TEMPERATURE]
#!/usr/bin/env python # -*- coding: utf-8 -*- """ GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 """ try: from NaoCreator.setting import Setting # Setting(nao_connected=True, debug=True, nao_quest_v="2.1", ip="192.168.0.1") Setting(nao_connected=True, debug=True, nao_quest_v="2.1", ip="169.254.88.3") from NaoCreator.nao_scenario_creator import i_meet_you, nao_scenario_module import NaoCreator.SGBDDialogue.creer as Dg import NaoCreator.Tool.speech_move as Sm import NaoCreator.SpeechToText.nao_key_reco as Nkr from PlayerManager.player_manager import Player from NaoQuest.questor import Questor from NaoQuest.scenario import Scenario import speech_recognition as sr except Exception as e: print e def waitfor(): """ Attend que l'utilisateur appuie sur le haut de la tête de nao :return:na """ print u"Attente d'une réponse pour la prochaine quête" Setting.naoLed.off("AllLeds") Setting.naoLed.on("AllLedsRed") while Setting.naoMemoryProxy.getData("MiddleTactilTouched") != 1:
# coding: utf-8 from NaoCreator.setting import Setting Setting(nao_connected=False, debug=True, nao_quest_v="2.1", bypass_wait_for=True, load_cpt_data=False, use_mic=False, ip="192.168.0.1") from NaoQuest.questor import Questor from NaoQuest.scenario import Scenario from PlayerManager.player_manager import Player from NaoQuest.objectives.cpt_objective import CptObjective Player("tristan").save() q = Questor('terrainPropice', "tristan") q.launch()