[python] [INFO] exec(String) #import time #Definire Arduino + 6 Servo Brat arduino = Runtime.createAndStart("arduino","Arduino") AcapelaSpeech = Runtime.createAndStart("AcapelaSpeech","AcapelaSpeech") Servo_0 = Runtime.createAndStart("Servo_0","Servo") Servo_1 = Runtime.createAndStart("Servo_1","Servo") Servo_2 = Runtime.createAndStart("Servo_2","Servo") Servo_3 = Runtime.createAndStart("Servo_3","Servo") Servo_4 = Runtime.createAndStart("Servo_4","Servo") Servo_5 = Runtime.createAndStart("Servo_5","Servo") #Functie ascultare si redare ControlRobot = Runtime.createAndStart("ControlRobot","InMoov") ControlRobot.startMouth() # Redare text ControlRobot.startEar() # Ascultare text Ascultare = ControlRobot.ear Redare = ControlRobot.mouth #Adaugare comanda pt pozitia Implicita Ascultare.addCommand("Test","python","PozitieImplicita") Ascultare.addCommand("Best","python","PozitieImplicita2") #Confirmari comenzi Ascultare.addComfirmations("yes") Ascultare.addNegations("no") #Setari Arduino arduino.connect("COM3") #Serial baudarate #Port /user/TTYUSB01 etc. #Asteapta 1 sec pt conectare #time.sleep(1) #Atasare Servo Pini Arduino Servo_0.attach("arduino",3) #Pin 3 Servo_1.attach("arduino",5) #Pin 5 Servo_2.attach("arduino",6) #Pin 6 Servo_3.attach("arduino",9) #Pin 9 Servo_4.attach("arduino",10) #Pin 10 Servo_5.attach("arduino",11) #Pin 11 #Definire metode def PozitieImplicita(): Servo_0.moveTo(90) Servo_1.moveTo(90) Servo_2.moveTo(90) Servo_3.moveTo(90) Servo_4.moveTo(90) Servo_5.moveTo(90) def PozitieImplicita2(): Servo_0.moveTo(90) Servo_1.moveTo(90) Servo_2.moveTo(90) Servo_3.moveTo(90) Servo_4.moveTo(90) Servo_5.moveTo(30) Servo_5.moveTo(60) Servo_5.moveTo(90) Servo_5.moveTo(120) #Exec PozitieImplicita(); #time.sleep(5) PozitieImplicita2() # Pornire ascultare Ascultare.startListening() [python.interpreter.6] [INFO] Runtime.createService arduino [python.interpreter.6] [INFO] Runtime.createService arduino.serial [python.interpreter.6] [INFO] Runtime.createService AcapelaSpeech [AWT-EventQueue-0] [INFO] displaying COM3 [python.interpreter.6] [INFO] getMessageSet loading 166 non-sub-routable methods [python.interpreter.6] [INFO] setting voice [python.interpreter.6] [INFO] setting reference to remote object voice [python.interpreter.6] [INFO] setting voices [python.interpreter.6] [INFO] setting reference to remote object voices [python.interpreter.6] [WARN] no such method Runtime.registered(AcapelaSpeech) : - attempting upcasting [python.interpreter.6] [WARN] ouch! need to search through 248 methods [webgui] [WARN] no such method WebGui.onRegistered(AcapelaSpeech) : - attempting upcasting [webgui] [WARN] ouch! need to search through 188 methods [webgui] [INFO] subscribe [AcapelaSpeech/publishStatus ---> webgui/onStatus] [webgui] [INFO] subscribe [AcapelaSpeech/publishState ---> webgui/onState] [gui] [WARN] no such method GUIService.registered(AcapelaSpeech) : - attempting upcasting [gui] [WARN] ouch! need to search through 191 methods [python] [WARN] no such method Python.onRegistered(AcapelaSpeech) : - attempting upcasting [python] [WARN] ouch! need to search through 171 methods [python] [INFO] exec(String) from org.myrobotlab.service import AcapelaSpeech AcapelaSpeech = Runtime.getService("AcapelaSpeech") [AWT-EventQueue-0] [INFO] class org.myrobotlab.control.AcapelaSpeechGUI not found [AWT-EventQueue-0] [INFO] could not construct a org.myrobotlab.control.AcapelaSpeechGUI object - creating generic template [AWT-EventQueue-0] [INFO] subscribe [AcapelaSpeech/publishStatus ---> gui/getStatus] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [AcapelaSpeech/getMethodMap ---> webgui/onMethodMap] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [AcapelaSpeech/publishStartSpeaking ---> webgui/onStartSpeaking] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [AcapelaSpeech/publishEndSpeaking ---> webgui/onEndSpeaking] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [AcapelaSpeech/publishStatus ---> webgui/onStatus] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [AcapelaSpeech/publishState ---> webgui/onState] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [AcapelaSpeech/getMethodMap ---> webgui/onMethodMap] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [python.interpreter.6] [INFO] Runtime.createService AcapelaSpeech.audioFile [python.interpreter.6] [INFO] getMessageSet loading 173 non-sub-routable methods [python.interpreter.6] [INFO] found reservation exchanging reservedKey AcapelaSpeech.audioFile for actual name AcapelaSpeech.audioFile [python.interpreter.6] [WARN] no such method Runtime.registered(AudioFile) : - attempting upcasting [python.interpreter.6] [WARN] ouch! need to search through 248 methods [webgui] [WARN] no such method WebGui.onRegistered(AudioFile) : - attempting upcasting [webgui] [WARN] ouch! need to search through 188 methods [webgui] [INFO] subscribe [AcapelaSpeech.audioFile/publishStatus ---> webgui/onStatus] [webgui] [INFO] subscribe [AcapelaSpeech.audioFile/publishState ---> webgui/onState] [gui] [WARN] no such method GUIService.registered(AudioFile) : - attempting upcasting [python] [WARN] no such method Python.onRegistered(AudioFile) : - attempting upcasting [gui] [WARN] ouch! need to search through 191 methods [python.interpreter.6] [INFO] subscribe [AcapelaSpeech.audioFile/publishAudioStart ---> AcapelaSpeech/onAudioStart] [python.interpreter.6] [INFO] subscribe [AcapelaSpeech.audioFile/publishAudioEnd ---> AcapelaSpeech/onAudioEnd] [python.interpreter.6] [INFO] Runtime.createService Servo_0 [python] [WARN] ouch! need to search through 171 methods [python] [INFO] exec(String) from org.myrobotlab.service import AudioFile AcapelaSpeech_audioFile = Runtime.getService("AcapelaSpeech.audioFile") [python.interpreter.6] [INFO] getMessageSet loading 204 non-sub-routable methods [AWT-EventQueue-0] [INFO] subscribe [AcapelaSpeech.audioFile/publishStatus ---> gui/getStatus] [python.interpreter.6] [INFO] setting controllerName [python.interpreter.6] [INFO] setting reference to remote object controllerName [python.interpreter.6] [INFO] setting pinList [python.interpreter.6] [INFO] setting reference to remote object pinList [python.interpreter.6] [INFO] setting targetOutput [python.interpreter.6] [INFO] setting reference to remote object targetOutput [python.interpreter.6] [INFO] setting controllers [python.interpreter.6] [INFO] setting reference to remote object controllers [python.interpreter.6] [WARN] no such method Runtime.registered(Servo) : - attempting upcasting [python.interpreter.6] [WARN] ouch! need to search through 248 methods [webgui] [WARN] no such method WebGui.onRegistered(Servo) : - attempting upcasting [webgui] [WARN] ouch! need to search through 188 methods [webgui] [INFO] subscribe [Servo_0/publishStatus ---> webgui/onStatus] [webgui] [INFO] subscribe [Servo_0/publishState ---> webgui/onState] [gui] [WARN] no such method GUIService.registered(Servo) : - attempting upcasting [gui] [WARN] ouch! need to search through 191 methods [python] [WARN] no such method Python.onRegistered(Servo) : - attempting upcasting [python] [WARN] ouch! need to search through 171 methods [python] [INFO] exec(String) from org.myrobotlab.service import Servo Servo_0 = Runtime.getService("Servo_0") [python.interpreter.6] [INFO] subscribe [runtime/registered ---> Servo_0/onRegistered] [python.interpreter.6] [INFO] Runtime.createService Servo_1 [python.interpreter.6] [INFO] getMessageSet loading 204 non-sub-routable methods [python.interpreter.6] [INFO] setting controllerName [python.interpreter.6] [INFO] setting reference to remote object controllerName [python.interpreter.6] [INFO] setting pinList [python.interpreter.6] [INFO] setting reference to remote object pinList [python.interpreter.6] [INFO] setting targetOutput [python.interpreter.6] [INFO] setting reference to remote object targetOutput [python.interpreter.6] [INFO] setting controllers [python.interpreter.6] [INFO] setting reference to remote object controllers [python.interpreter.6] [INFO] subscribe [runtime/registered ---> Servo_1/onRegistered] [python] [INFO] exec(String) from org.myrobotlab.service import Servo Servo_1 = Runtime.getService("Servo_1") [Servo_0] [WARN] no such method Servo.onRegistered(Servo) : - attempting upcasting [webgui] [INFO] subscribe [Servo_1/publishStatus ---> webgui/onStatus] [Servo_1] [WARN] no such method Servo.onRegistered(Servo) : - attempting upcasting [Servo_0] [WARN] ouch! need to search through 204 methods [webgui] [INFO] subscribe [Servo_1/publishState ---> webgui/onState] [Servo_1] [WARN] ouch! need to search through 204 methods [python.interpreter.6] [INFO] Runtime.createService Servo_2 [python.interpreter.6] [INFO] getMessageSet loading 204 non-sub-routable methods [python.interpreter.6] [INFO] setting controllerName [python.interpreter.6] [INFO] setting reference to remote object controllerName [python.interpreter.6] [INFO] setting pinList [python.interpreter.6] [INFO] setting reference to remote object pinList [python.interpreter.6] [INFO] setting targetOutput [python.interpreter.6] [INFO] setting reference to remote object targetOutput [python.interpreter.6] [INFO] setting controllers [python.interpreter.6] [INFO] setting reference to remote object controllers [python] [INFO] exec(String) from org.myrobotlab.service import Servo Servo_2 = Runtime.getService("Servo_2") [python.interpreter.6] [INFO] subscribe [runtime/registered ---> Servo_2/onRegistered] [python.interpreter.6] [INFO] Runtime.createService Servo_3 [python.interpreter.6] [INFO] getMessageSet loading 204 non-sub-routable methods [webgui] [INFO] subscribe [Servo_2/publishStatus ---> webgui/onStatus] [webgui] [INFO] subscribe [Servo_2/publishState ---> webgui/onState] [python.interpreter.6] [INFO] setting controllerName [python.interpreter.6] [INFO] setting reference to remote object controllerName [python.interpreter.6] [INFO] setting pinList [python.interpreter.6] [INFO] setting reference to remote object pinList [python.interpreter.6] [INFO] setting targetOutput [python.interpreter.6] [INFO] setting reference to remote object targetOutput [python.interpreter.6] [INFO] setting controllers [python.interpreter.6] [INFO] setting reference to remote object controllers [python.interpreter.6] [INFO] subscribe [runtime/registered ---> Servo_3/onRegistered] [python.interpreter.6] [INFO] Runtime.createService Servo_4 [python.interpreter.6] [INFO] getMessageSet loading 204 non-sub-routable methods [webgui] [INFO] subscribe [Servo_3/publishStatus ---> webgui/onStatus] [python] [INFO] exec(String) from org.myrobotlab.service import Servo Servo_3 = Runtime.getService("Servo_3") [webgui] [INFO] subscribe [Servo_3/publishState ---> webgui/onState] [python.interpreter.6] [INFO] setting controllerName [python.interpreter.6] [INFO] setting reference to remote object controllerName [python.interpreter.6] [INFO] setting pinList [python.interpreter.6] [INFO] setting reference to remote object pinList [python.interpreter.6] [INFO] setting targetOutput [python.interpreter.6] [INFO] setting reference to remote object targetOutput [python.interpreter.6] [INFO] setting controllers [python.interpreter.6] [INFO] setting reference to remote object controllers [python.interpreter.6] [INFO] subscribe [runtime/registered ---> Servo_4/onRegistered] [webgui] [INFO] subscribe [Servo_4/publishStatus ---> webgui/onStatus] [python.interpreter.6] [INFO] Runtime.createService Servo_5 [webgui] [INFO] subscribe [Servo_4/publishState ---> webgui/onState] [python.interpreter.6] [INFO] getMessageSet loading 204 non-sub-routable methods [python] [INFO] exec(String) from org.myrobotlab.service import Servo Servo_4 = Runtime.getService("Servo_4") [python.interpreter.6] [INFO] setting controllerName [python.interpreter.6] [INFO] setting reference to remote object controllerName [python.interpreter.6] [INFO] setting pinList [python.interpreter.6] [INFO] setting reference to remote object pinList [python.interpreter.6] [INFO] setting targetOutput [python.interpreter.6] [INFO] setting reference to remote object targetOutput [python.interpreter.6] [INFO] setting controllers [python.interpreter.6] [INFO] setting reference to remote object controllers [python] [INFO] exec(String) from org.myrobotlab.service import Servo Servo_5 = Runtime.getService("Servo_5") [webgui] [INFO] subscribe [Servo_5/publishStatus ---> webgui/onStatus] [webgui] [INFO] subscribe [Servo_5/publishState ---> webgui/onState] [python.interpreter.6] [INFO] subscribe [runtime/registered ---> Servo_5/onRegistered] [python.interpreter.6] [INFO] Runtime.createService ControlRobot [python.interpreter.6] [INFO] getMessageSet loading 237 non-sub-routable methods [python.interpreter.6] [INFO] setting pirPin [python.interpreter.6] [INFO] setting reference to remote object pirPin [python.interpreter.6] [WARN] no such method Runtime.registered(InMoov) : - attempting upcasting [python.interpreter.6] [WARN] ouch! need to search through 248 methods [webgui] [WARN] no such method WebGui.onRegistered(InMoov) : - attempting upcasting [webgui] [WARN] ouch! need to search through 188 methods [webgui] [INFO] subscribe [ControlRobot/publishStatus ---> webgui/onStatus] [webgui] [INFO] subscribe [ControlRobot/publishState ---> webgui/onState] [Servo_4] [WARN] no such method Servo.onRegistered(InMoov) : - attempting upcasting [gui] [WARN] no such method GUIService.registered(InMoov) : - attempting upcasting [Servo_4] [WARN] ouch! need to search through 204 methods [Servo_0] [WARN] no such method Servo.onRegistered(InMoov) : - attempting upcasting [Servo_0] [WARN] ouch! need to search through 204 methods [gui] [WARN] ouch! need to search through 191 methods [python.interpreter.6] [INFO] Runtime.createService python [python.interpreter.6] [INFO] starting python python [python.interpreter.6] [INFO] started python python [python] [WARN] no such method Python.onRegistered(InMoov) : - attempting upcasting [python] [WARN] ouch! need to search through 171 methods [python] [INFO] exec(String) from org.myrobotlab.service import InMoov ControlRobot = Runtime.getService("ControlRobot") [python.interpreter.6] [INFO] Runtime.createService ControlRobot.mouth [python.interpreter.6] [INFO] getMessageSet loading 166 non-sub-routable methods [python.interpreter.6] [INFO] found reservation ControlRobot.mouth.audioFile [audioFile] AudioFile - audioFile [python.interpreter.6] [INFO] found reservation exchanging reservedKey ControlRobot.mouth for actual name ControlRobot.mouth [python.interpreter.6] [INFO] setting voice [python.interpreter.6] [INFO] setting reference to remote object voice [python.interpreter.6] [INFO] setting voices [python.interpreter.6] [INFO] setting reference to remote object voices [webgui] [INFO] subscribe [ControlRobot.mouth/publishStatus ---> webgui/onStatus] [Servo_4] [WARN] no such method Servo.onRegistered(AcapelaSpeech) : - attempting upcasting [webgui] [INFO] subscribe [ControlRobot.mouth/publishState ---> webgui/onState] [Servo_4] [WARN] ouch! need to search through 204 methods [python] [INFO] exec(String) from org.myrobotlab.service import AcapelaSpeech ControlRobot_mouth = Runtime.getService("ControlRobot.mouth") [Servo_5] [WARN] no such method Servo.onRegistered(AcapelaSpeech) : - attempting upcasting [Servo_1] [WARN] no such method Servo.onRegistered(AcapelaSpeech) : - attempting upcasting [Servo_2] [WARN] no such method Servo.onRegistered(AcapelaSpeech) : - attempting upcasting [Servo_3] [WARN] no such method Servo.onRegistered(AcapelaSpeech) : - attempting upcasting [Servo_5] [WARN] ouch! need to search through 204 methods [Servo_1] [WARN] ouch! need to search through 204 methods [Servo_2] [WARN] ouch! need to search through 204 methods [Servo_3] [WARN] ouch! need to search through 204 methods [python.interpreter.6] [INFO] Runtime.createService ControlRobot.mouth.audioFile [python.interpreter.6] [INFO] getMessageSet loading 173 non-sub-routable methods [python.interpreter.6] [INFO] found reservation exchanging reservedKey ControlRobot.mouth.audioFile for actual name ControlRobot.mouth.audioFile [Servo_4] [WARN] no such method Servo.onRegistered(AudioFile) : - attempting upcasting [webgui] [INFO] subscribe [ControlRobot.mouth.audioFile/publishStatus ---> webgui/onStatus] [Servo_4] [WARN] ouch! need to search through 204 methods [webgui] [INFO] subscribe [ControlRobot.mouth.audioFile/publishState ---> webgui/onState] [python] [INFO] exec(String) from org.myrobotlab.service import AudioFile ControlRobot_mouth_audioFile = Runtime.getService("ControlRobot.mouth.audioFile") [python.interpreter.6] [INFO] subscribe [ControlRobot.mouth.audioFile/publishAudioStart ---> ControlRobot.mouth/onAudioStart] [python.interpreter.6] [INFO] subscribe [ControlRobot.mouth.audioFile/publishAudioEnd ---> ControlRobot.mouth/onAudioEnd] [python.interpreter.6] [INFO] speak blocking starting mouth [python.interpreter.6] [INFO] publishStartSpeaking starting mouth [python.interpreter.6] [INFO] playing file : audioFile\AcapelaSpeech\Ryan\4ab0d827d413250b73ca11e95ad0636a.mp3 mode : blocking trackId : 1496309214765 [python.interpreter.6] [INFO] publishEndSpeaking starting mouth [python.interpreter.6] [INFO] Finished waiting for completion. [python.interpreter.6] [INFO] speak blocking starting ear [python.interpreter.6] [INFO] publishStartSpeaking starting ear [python.interpreter.6] [INFO] playing file : audioFile\AcapelaSpeech\Ryan\a3fd027b6e1accfbd9ca54920241d4c4.mp3 mode : blocking trackId : 1496309215078 [python.interpreter.6] [INFO] publishEndSpeaking starting ear [python.interpreter.6] [INFO] Finished waiting for completion. [python.interpreter.6] [INFO] Runtime.createService ControlRobot.ear [AWT-EventQueue-0] [INFO] subscribe [Servo_0/publishStatus ---> gui/getStatus] [python.interpreter.6] [INFO] getMessageSet loading 161 non-sub-routable methods [python.interpreter.6] [INFO] found reservation exchanging reservedKey ControlRobot.ear for actual name ControlRobot.ear [python.interpreter.6] [INFO] setting listening [python.interpreter.6] [WARN] no such method Runtime.registered(WebkitSpeechRecognition) : - attempting upcasting [python.interpreter.6] [WARN] ouch! need to search through 248 methods [gui] [WARN] no such method GUIService.registered(WebkitSpeechRecognition) : - attempting upcasting [Servo_4] [WARN] no such method Servo.onRegistered(WebkitSpeechRecognition) : - attempting upcasting [Servo_5] [WARN] no such method Servo.onRegistered(WebkitSpeechRecognition) : - attempting upcasting [gui] [WARN] ouch! need to search through 191 methods [python] [WARN] no such method Python.onRegistered(WebkitSpeechRecognition) : - attempting upcasting [Servo_0] [WARN] no such method Servo.onRegistered(WebkitSpeechRecognition) : - attempting upcasting [Servo_2] [WARN] no such method Servo.onRegistered(WebkitSpeechRecognition) : - attempting upcasting [Servo_3] [WARN] no such method Servo.onRegistered(WebkitSpeechRecognition) : - attempting upcasting [Servo_4] [WARN] ouch! need to search through 204 methods [Servo_5] [WARN] ouch! need to search through 204 methods [python] [WARN] ouch! need to search through 171 methods [Servo_0] [WARN] ouch! need to search through 204 methods [Servo_2] [WARN] ouch! need to search through 204 methods [python] [INFO] exec(String) from org.myrobotlab.service import WebkitSpeechRecognition ControlRobot_ear = Runtime.getService("ControlRobot.ear") [webgui] [WARN] no such method WebGui.onRegistered(WebkitSpeechRecognition) : - attempting upcasting [webgui] [WARN] ouch! need to search through 188 methods [webgui] [INFO] subscribe [ControlRobot.ear/publishStatus ---> webgui/onStatus] [webgui] [INFO] subscribe [ControlRobot.ear/publishState ---> webgui/onState] [Servo_3] [WARN] ouch! need to search through 204 methods [python.interpreter.6] [WARN] Confirmation support not enabled in webkit speech. [python.interpreter.6] [WARN] Negations not enabled in webkit speech. [python.interpreter.6] [INFO] connect to port COM3 115200|8|1|0 [python.interpreter.6] [INFO] already connected to COM3 - disconnect first to reconnect [python.interpreter.6] [INFO] arduino COM3 getVersion [python.interpreter.6] [INFO] arduino info arduino.serial connected on COM3 responded version 40 ... goodtimes... [python.interpreter.6] [INFO] publishVersion 40 [python.interpreter.6] [INFO] subscribe [arduino/publishAttachedDevice ---> Servo_0/onAttachedDevice] [python.interpreter.6] [INFO] Servo_0 setController arduino [python.interpreter.6] [INFO] attaching device Servo_0 of type 7 [python.interpreter.6] [INFO] Sending Int Array: 170,15,8,7,7,83,101,114,118,111,95,48,4,3,90,0,0 [COM3.portListener 1] [ERROR] arduino error unknown serial event 10 [AWT-EventQueue-0] [INFO] subscribe [Servo_1/publishStatus ---> gui/getStatus] [AWT-EventQueue-0] [INFO] subscribe [Servo_2/publishStatus ---> gui/getStatus] [AWT-EventQueue-0] [INFO] subscribe [Servo_3/publishStatus ---> gui/getStatus] [AWT-EventQueue-0] [INFO] subscribe [Servo_4/publishStatus ---> gui/getStatus] [AWT-EventQueue-0] [INFO] subscribe [Servo_5/publishStatus ---> gui/getStatus] [AWT-EventQueue-0] [INFO] subscribe [ControlRobot/publishStatus ---> gui/getStatus] [gui_outbox_0] [ERROR] could not find service ControlRobot.opencv to process addListener from sender gui - tearing down route [gui_outbox_0] [ERROR] removeListener requested ControlRobot.opencv.send to be removed - but does not exist [AWT-EventQueue-0] [INFO] class org.myrobotlab.control.AcapelaSpeechGUI not found [AWT-EventQueue-0] [INFO] could not construct a org.myrobotlab.control.AcapelaSpeechGUI object - creating generic template [AWT-EventQueue-0] [INFO] subscribe [ControlRobot.mouth/publishStatus ---> gui/getStatus] [AWT-EventQueue-0] [INFO] subscribe [ControlRobot.mouth.audioFile/publishStatus ---> gui/getStatus] [AWT-EventQueue-0] [INFO] getState Arduino [arduino] [INFO] arduino COM3 getVersion [arduino] [INFO] arduino info arduino.serial connected on COM3 responded version 40 ... goodtimes... [arduino] [INFO] publishVersion 40 [python.interpreter.6] [INFO] Ack not received : DEVICE_ATTACH 0 [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] arduino COM3 getVersion [New I/O worker #4] [INFO] arduino info arduino.serial connected on COM3 responded version 40 ... goodtimes... [New I/O worker #4] [INFO] publishVersion 40 [AWT-EventQueue-0] [INFO] class org.myrobotlab.control.WebkitSpeechRecognitionGUI not found [AWT-EventQueue-0] [INFO] could not construct a org.myrobotlab.control.WebkitSpeechRecognitionGUI object - creating generic template [AWT-EventQueue-0] [INFO] subscribe [ControlRobot.ear/publishStatus ---> gui/getStatus] [python.interpreter.6] [INFO] subscribe [arduino/publishAttachedDevice ---> Servo_1/onAttachedDevice] [python.interpreter.6] [INFO] Servo_1 setController arduino [python.interpreter.6] [INFO] attaching device Servo_1 of type 7 [python.interpreter.6] [INFO] Sending Int Array: 170,15,8,7,7,83,101,114,118,111,95,49,4,5,90,0,0 [COM3.portListener 1] [ERROR] arduino error unknown serial event 10 [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [ControlRobot.mouth/getMethodMap ---> webgui/onMethodMap] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_2/getMethodMap ---> webgui/onMethodMap] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_3/getMethodMap ---> webgui/onMethodMap] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_4/getMethodMap ---> webgui/onMethodMap] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_5/getMethodMap ---> webgui/onMethodMap] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_1/getMethodMap ---> webgui/onMethodMap] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_0/getMethodMap ---> webgui/onMethodMap] [New I/O worker #4] [INFO] POST /api/messages [python.interpreter.6] [INFO] Ack not received : DEVICE_ATTACH 0 [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_2/publishServoEvent ---> webgui/onServoEvent] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_2/publishStatus ---> webgui/onStatus] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_2/publishState ---> webgui/onState] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_2/getMethodMap ---> webgui/onMethodMap] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [runtime/getServiceNamesFromInterface ---> webgui/onServiceNamesFromInterface] [New I/O worker #4] [INFO] POST /api/messages [python.interpreter.6] [INFO] subscribe [arduino/publishAttachedDevice ---> Servo_2/onAttachedDevice] [python.interpreter.6] [INFO] Servo_2 setController arduino [python.interpreter.6] [INFO] attaching device Servo_2 of type 7 [python.interpreter.6] [INFO] Sending Int Array: 170,15,8,7,7,83,101,114,118,111,95,50,4,6,90,0,0 [COM3.portListener 1] [ERROR] arduino error unknown serial event 10 [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_3/publishServoEvent ---> webgui/onServoEvent] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_3/publishStatus ---> webgui/onStatus] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_3/publishState ---> webgui/onState] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_3/getMethodMap ---> webgui/onMethodMap] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [runtime/getServiceNamesFromInterface ---> webgui/onServiceNamesFromInterface] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_4/publishServoEvent ---> webgui/onServoEvent] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_4/publishStatus ---> webgui/onStatus] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_4/publishState ---> webgui/onState] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_4/getMethodMap ---> webgui/onMethodMap] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [runtime/getServiceNamesFromInterface ---> webgui/onServiceNamesFromInterface] [New I/O worker #4] [INFO] POST /api/messages [python.interpreter.6] [INFO] Ack not received : DEVICE_ATTACH 0 [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_1/publishServoEvent ---> webgui/onServoEvent] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_1/publishStatus ---> webgui/onStatus] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_1/publishState ---> webgui/onState] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [Servo_1/getMethodMap ---> webgui/onMethodMap] [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [runtime/getServiceNamesFromInterface ---> webgui/onServiceNamesFromInterface] [New I/O worker #4] [INFO] POST /api/messages [python.interpreter.6] [INFO] subscribe [arduino/publishAttachedDevice ---> Servo_3/onAttachedDevice] [python.interpreter.6] [INFO] Servo_3 setController arduino [python.interpreter.6] [INFO] attaching device Servo_3 of type 7 [python.interpreter.6] [INFO] Sending Int Array: 170,15,8,7,7,83,101,114,118,111,95,51,4,9,90,0,0 [COM3.portListener 1] [ERROR] arduino error unknown serial event 10 [New I/O worker #4] [INFO] POST /api/messages [New I/O worker #4] [INFO] subscribe [ControlRobot.ear/getMethodMap ---> webgui/onMethodMap] [New I/O worker #4] [INFO] POST /api/messages [python.interpreter.6] [INFO] Ack not received : DEVICE_ATTACH 0 [python.interpreter.6] [INFO] subscribe [arduino/publishAttachedDevice ---> Servo_4/onAttachedDevice] [python.interpreter.6] [INFO] Servo_4 setController arduino [python.interpreter.6] [INFO] attaching device Servo_4 of type 7 [python.interpreter.6] [INFO] Sending Int Array: 170,15,8,7,7,83,101,114,118,111,95,52,4,10,90,0,0 [COM3.portListener 1] [ERROR] arduino error unknown serial event 10 [python.interpreter.6] [INFO] Ack not received : DEVICE_ATTACH 0 [python.interpreter.6] [INFO] subscribe [arduino/publishAttachedDevice ---> Servo_5/onAttachedDevice] [python.interpreter.6] [INFO] Servo_5 setController arduino [python.interpreter.6] [INFO] attaching device Servo_5 of type 7 [python.interpreter.6] [INFO] Sending Int Array: 170,15,8,7,7,83,101,114,118,111,95,53,4,11,90,0,0 [COM3.portListener 1] [ERROR] arduino error unknown serial event 10 [python.interpreter.6] [INFO] Ack not received : DEVICE_ATTACH 0 [python.interpreter.6] [ERROR] arduino error cannot get device id for Servo_0 - device attempetd to attach - but I suspect something went wrong [python.interpreter.6] [ERROR] python error PyException - null Traceback (most recent call last): File "", line 66, in File "", line 47, in PozitieImplicita at org.myrobotlab.service.Arduino.servoWrite(Arduino.java:2340) at org.myrobotlab.service.Servo.moveTo(Servo.java:367) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) java.lang.NullPointerException: java.lang.NullPointerException at org.python.core.Py.JavaError(Py.java:546) at org.python.core.Py.JavaError(Py.java:537) at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:188) at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204) at org.python.core.PyObject.__call__(PyObject.java:478) at org.python.core.PyObject.__call__(PyObject.java:482) at org.python.core.PyMethod.__call__(PyMethod.java:141) at org.python.pycode._pyx6.PozitieImplicita$1(:52) at org.python.pycode._pyx6.call_function() at org.python.core.PyTableCode.call(PyTableCode.java:167) at org.python.core.PyBaseCode.call(PyBaseCode.java:124) at org.python.core.PyFunction.__call__(PyFunction.java:403) at org.python.pycode._pyx6.f$0(:71) at org.python.pycode._pyx6.call_function() at org.python.core.PyTableCode.call(PyTableCode.java:167) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.Py.runCode(Py.java:1386) at org.python.core.Py.exec(Py.java:1430) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:267) at org.myrobotlab.service.Python$PIThread.run(Python.java:161) Caused by: java.lang.NullPointerException at org.myrobotlab.service.Arduino.servoWrite(Arduino.java:2340) at org.myrobotlab.service.Servo.moveTo(Servo.java:367) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186) ... 17 more [python.interpreter.6] [ERROR] ------ Traceback (most recent call last): File "", line 66, in File "", line 47, in PozitieImplicita at org.myrobotlab.service.Arduino.servoWrite(Arduino.java:2340) at org.myrobotlab.service.Servo.moveTo(Servo.java:367) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) java.lang.NullPointerException: java.lang.NullPointerException at org.python.core.Py.JavaError(Py.java:546) at org.python.core.Py.JavaError(Py.java:537) at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:188) at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204) at org.python.core.PyObject.__call__(PyObject.java:478) at org.python.core.PyObject.__call__(PyObject.java:482) at org.python.core.PyMethod.__call__(PyMethod.java:141) at org.python.pycode._pyx6.PozitieImplicita$1(:52) at org.python.pycode._pyx6.call_function() at org.python.core.PyTableCode.call(PyTableCode.java:167) at org.python.core.PyBaseCode.call(PyBaseCode.java:124) at org.python.core.PyFunction.__call__(PyFunction.java:403) at org.python.pycode._pyx6.f$0(:71) at org.python.pycode._pyx6.call_function() at org.python.core.PyTableCode.call(PyTableCode.java:167) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.Py.runCode(Py.java:1386) at org.python.core.Py.exec(Py.java:1430) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:267) at org.myrobotlab.service.Python$PIThread.run(Python.java:161) Caused by: java.lang.NullPointerException at org.myrobotlab.service.Arduino.servoWrite(Arduino.java:2340) at org.myrobotlab.service.Servo.moveTo(Servo.java:367) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186) ... 17 more ------