Ciao a tutti,

Mi presento mi chiamo Davide e vorrei provare a costruire un robot inmoov.

Ho un problema volevo prendere confidenza con my robotlab e ho deciso di provare il tutorial                           " voice.takephoto.py"

Ho installato my robotlab con tutte le funzioni ma quando mando in esecuzione mi da questoe errore:

132870 [python_input] ERROR class org.myrobotlab.logging.Logging  - ------
Traceback (most recent call last):
  File "<script>", line 1, in <module>
TypeError: heard() takes no arguments (1 given)

    at org.python.core.Py.TypeError(Py.java:221)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:294)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:127)
    at org.python.core.PyFunction.__call__(PyFunction.java:317)
    at org.python.pycode._pyx9.f$0(<script>:1)
    at org.python.pycode._pyx9.call_function(<script>)
    at org.python.core.PyTableCode.call(PyTableCode.java:165)
    at org.python.core.PyCode.call(PyCode.java:18)
    at org.python.core.Py.runCode(Py.java:1261)
    at org.python.core.Py.exec(Py.java:1305)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:215)
    at org.myrobotlab.service.Python$InputQueueThread.run(Python.java:210)
------

132870 [python_input] ERROR class org.myrobotlab.framework.Service  -
132880 [python_input] WARN  class org.myrobotlab.framework.Service  - Python.publishStatus(String,null) :  NoSuchMethodException - attempting upcasting
132880 [python_input] WARN  class org.myrobotlab.framework.Service  - ouch! need to search through 167 methods
132880 [python_input] WARN  class org.myrobotlab.framework.Service  - Python.publishError(null) :  NoSuchMethodException - attempting upcasting
132880 [python_input] WARN  class org.myrobotlab.framework.Service  - ouch! need to search through 167 methods

Grazie alessandruino ,

adesso mi risponde "hi alessandro" anche se tende a ripeterlo all'infinito,

quando dico take photo invece mi da errore:

157776 [ear_ear] INFO  org.myrobotlab.service.Sphinx  - recognized: take photo

157776 [ear_ear] INFO  class org.myrobotlab.framework.Service  - listening
157776 [python_input] INFO  class org.myrobotlab.service.Python  - setting data msg_ear_recognized
157778 [python_input] ERROR class org.myrobotlab.logging.Logging  - ------
Traceback (most recent call last):
  File "<script>", line 1, in <module>
  File "<string>", line 25, in heard
TypeError: recordSingleFrame(): expected 0 args; got 1

    at org.python.core.Py.TypeError(Py.java:221)
    at org.python.core.PyReflectedFunction.throwError(PyReflectedFunction.java:209)
    at org.python.core.PyReflectedFunction.throwArgCountError(PyReflectedFunction.java:262)
    at org.python.core.PyReflectedFunction.throwError(PyReflectedFunction.java:319)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:167)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
    at org.python.core.PyObject.__call__(PyObject.java:404)
    at org.python.core.PyObject.__call__(PyObject.java:408)
    at org.python.core.PyMethod.__call__(PyMethod.java:124)
    at org.python.pycode._pyx3.heard$1(<string>:27)
    at org.python.pycode._pyx3.call_function(<string>)
    at org.python.core.PyTableCode.call(PyTableCode.java:165)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:134)
    at org.python.core.PyFunction.__call__(PyFunction.java:317)
    at org.python.pycode._pyx9.f$0(<script>:1)
    at org.python.pycode._pyx9.call_function(<script>)
    at org.python.core.PyTableCode.call(PyTableCode.java:165)
    at org.python.core.PyCode.call(PyCode.java:18)
    at org.python.core.Py.runCode(Py.java:1261)
    at org.python.core.Py.exec(Py.java:1305)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:215)
    at org.myrobotlab.service.Python$InputQueueThread.run(Python.java:210)
------

157779 [python_input] ERROR class org.myrobotlab.framework.Service  -
157779 [python_input] WARN  class org.myrobotlab.framework.Service  - Python.publishStatus(String,null) :  NoSuchMethodException - attempting upcasting
157779 [python_input] WARN  class org.myrobotlab.framework.Service  - ouch! need to search through 168 methods
157780 [python_input] WARN  class org.myrobotlab.framework.Service  - Python.publishError(null) :  NoSuchMethodException - attempting upcasting
157780 [python_input] WARN  class org.myrobotlab.framework.Service  - ouch! need to search through 168 methods

Gingi

9 years 12 months ago

In reply to by Gingi

aggiornamento,

ho tolto "true" dalla seguente riga:

 photoFileName = opencv.recordSingleFrame()

e adesso funziona anche la foto , rimane il problema che a volte ripete in continuazione "hi alessandro"