Hello I am just starting and have the finger printed and working in Windows with version MRL 1695.
However, I want to run this on ubuntu linux and using the same script fails.... I cannot find anything similar to way so am here.
Output
1105826 [python] INFO org.myrobotlab.service.Python - exec inMoov = Runtime.createAndStart("inMoov", "InMoov")
rightSerialPort = "/dev/ttyACM0"
cameraIndex = 1
inMoov.attachArduino("right","uno", rightSerialPort)
inMoov.attachHand("right")
# system check
inMoov.systemCheck()
ear = inMoov.getEar()
ear.addCommand("rest", inMoov.getName(), "rest")
ear.addCommand("open hand", inMoov.getName(), "handOpen", "right")
ear.addCommand("close hand", inMoov.getName(), "handClose", "right")
ear.addCommand("capture gesture", inMoov.getName(), "captureGesture")
ear.addCommand("manual", ear.getName(), "lockOutAllGrammarExcept", "voice control")
ear.addCommand("voice control", ear.getName(), "clearLock")
ear.addComfirmations("yes","correct","yeah","ya")
ear.addNegations("no","wrong","nope","nah")
1105964 [Thread-16] WARN class org.myrobotlab.framework.Service - startService request: service inMoov is already running
1105967 [Thread-16] WARN class org.myrobotlab.framework.Service - startService request: service ear is already running
1105970 [Thread-16] INFO class org.myrobotlab.service.Runtime - loader for this class sun.misc.Launcher.AppClassLoader
1105971 [Thread-16] INFO class org.myrobotlab.service.Runtime - parent sun.misc.Launcher.ExtClassLoader
1105972 [Thread-16] INFO class org.myrobotlab.service.Runtime - system class loader sun.misc.Launcher$AppClassLoader@42aab87f
1105975 [Thread-16] INFO class org.myrobotlab.service.Runtime - parent should be nullsun.misc.Launcher.ExtClassLoader
1105977 [Thread-16] INFO class org.myrobotlab.service.Runtime - thread context sun.misc.Launcher.AppClassLoader
1105979 [Thread-16] INFO class org.myrobotlab.service.Runtime - thread context parent sun.misc.Launcher.ExtClassLoader
1105981 [Thread-16] INFO class org.myrobotlab.service.Runtime - refreshing classloader
1106121 [Thread-16] ERROR org.myrobotlab.logging.Logging - ------
Traceback (most recent call last):
File "<string>", line 1, in <module>
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at org.myrobotlab.service.Runtime.createService(Unknown Source)
at org.myrobotlab.service.Runtime.create(Unknown Source)
at org.myrobotlab.service.Runtime.create(Unknown Source)
at org.myrobotlab.service.Runtime.createAndStart(Unknown Source)
at org.myrobotlab.service.Runtime.createAndStart(Unknown Source)
at org.myrobotlab.service.InMoov.startService(Unknown Source)
at org.myrobotlab.service.Runtime.createAndStart(Unknown Source)
at org.myrobotlab.service.Runtime.createAndStart(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org/apache/http/client/methods/HttpUriRequest
at org.python.core.Py.JavaError(Py.java:481)
at org.python.core.Py.JavaError(Py.java:474)
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:404)
at org.python.core.PyObject.__call__(PyObject.java:408)
at org.python.pycode._pyx10.f$0(<string>:22)
at org.python.pycode._pyx10.call_function(<string>)
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:206)
at org.myrobotlab.service.Python$PIThread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/apache/http/client/methods/HttpUriRequest
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at org.myrobotlab.service.Runtime.createService(Unknown Source)
at org.myrobotlab.service.Runtime.create(Unknown Source)
at org.myrobotlab.service.Runtime.create(Unknown Source)
at org.myrobotlab.service.Runtime.createAndStart(Unknown Source)
at org.myrobotlab.service.Runtime.createAndStart(Unknown Source)
at org.myrobotlab.service.InMoov.startService(Unknown Source)
at org.myrobotlab.service.Runtime.createAndStart(Unknown Source)
at org.myrobotlab.service.Runtime.createAndStart(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
... 11 more
Caused by: java.lang.ClassNotFoundException: org.apache.http.client.methods.HttpUriRequest
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 26 more
------
1106129 [Thread-16] ERROR class org.myrobotlab.framework.Service - Python error
Script
inMoov = Runtime.createAndStart("inMoov", "InMoov")
rightSerialPort = "/dev/ttyACM0"
cameraIndex = 1
inMoov.attachArduino("right","uno", rightSerialPort)
inMoov.attachHand("right")
# system check
inMoov.systemCheck()
ear = inMoov.getEar()
ear.addCommand("rest", inMoov.getName(), "rest")
ear.addCommand("open hand", inMoov.getName(), "handOpen", "right")
ear.addCommand("close hand", inMoov.getName(), "handClose", "right")
ear.addCommand("capture gesture", inMoov.getName(), "captureGesture")
ear.addCommand("manual", ear.getName(), "lockOutAllGrammarExcept", "voice control")
ear.addCommand("voice control", ear.getName(), "clearLock")
ear.addComfirmations("yes","correct","yeah","ya")
ear.addNegations("no","wrong","nope","nah")
I forgot to add this
I forgot to add this MyRobotLab version is 1695
Hello bradap & welcome ! Yay
Hello bradap & welcome !
Yay Linux !
I'm afraid your caught between a move from google code to github...
1695 is a very very old version
the latest version on version had problems interfacing with the repo...
now if you look - there are NO releases .. I've removed them all... Its all being dismantled because google code no longer supports releases :P
I've done a local build for dwilli9103 he has windows 64 bit.. What bitness of Linux do you have 32 or 64 ?
Linux
I am using Ubuntu x64 and also tried RaspPi with the Debian version. I just got the PI so not familar with everything yet.
I also tried build 1987 but no script worked so I stayed with the older build since it worked. I have the FULL script and the script from above.
I am also wanting to learn more about Linux, Java & Perl programing and looking at the Perl scripts is confusing. If you have any tutorial or walk-through for how MRL interacts, I would appreciate it.
MRL will work with Linux and
MRL will work with Linux and on RasPi
Here are some links :
This build will work with x86 64 bit windows -
http://myrobotlab.org/content/mrl-evolution
I'll post other builds when I have the time..
Many of the services work on any platform (pure Java) .. but if a Service needs to talk to the hardware directly.. typically it will need it's specific platform components.. e.g. Arduino needs rxtx serial components
If you browse the site you can find tutorials on tracking, pid and many other things, but at the moment its not as organized as I would want, but my focus is to move MRL to its new location.
We will support Linux always & MRL is written Java .. one of the most popular services is Python.. because it has its own IDE and allows "gluing" together other services.. Perl is not currently supported, and pretty low on the TODO list...
Script?
So moving forward is there an approved script for the newest build? Both scripts fail with a message that attach Ardunio is invalid.
Has anyone tried using WINE with the newest build on linux?
Still in progress of moving
Still in progress of moving .. but I made another "All In One" Linux 64 package .. was thinking of your system ..
All In One - Linux 64
Full / All services x86.64.linux - https://drive.google.com/file/d/0BwldU9GvnUDWUmJGc21sZlcxMVE/edit?usp=sharing
Thank you and another question
I downloaded the windows link from last reply and below is my script..
However when I run that script in windows my finger moves like a banshee but cannot move manually. I do not see where or how in the script it is moving at all. Why is there interactions with the head and other parts when my script comments them all out?
Most of the output from run...
...
Hi Bradap
And Welcome..
You can send log files to us with the "noWorky" button ...
http://myrobotlab.org/content/helpful-myrobotlab-tips-and-tricks-0#noWo…;
the systemCheck is supposed to move parts from the rest position to a near "rest" position..
A cursory glance of the script your running, it seems you have very unusually min / max positions, was wondering why?
Script
I was trying to get the single finger to work in Windows8 x64 before moving to Linux.
I have no idea - nothing I do works with the script and just sent a No-Worky. Not sure why but Perl is having issues today. It seems like every time I run this I see new issues.
The noWorky helped - I saw
The noWorky helped -
I saw this in the log :
Yep that would be a problem. Take the sketch loaded in the Arduino and upload it. Your are 8 versions out of synch.
Also, there is no Perl currently .. its Python.
NoWorky is now worky!!!!!
OK I spent all day with this and now on my 3rd PC ......
After setting the 'sketch' to the Ardunio - did not now want that was at first. I had grabbed a script from another post that wa s labeled full.py and it would always die with a Python error - not Perl. Version now appears to be at 9.
After hacking down full.py - everything but the right hand is commmented out and it is working - the finger is now moving. I'll get a cleaned up finger ONLY script and post in the forum.
Thanks for your help next will be Linux and RaspPi.