Hello , my name is Leonard and am studying automation engineer here in Greece , i have taken a project so am still learning moving from theory to real action :D , i was searching the net for tracking systems found out opencv then i learned that working with it on raspi is a pain in the ,,,, so after 2 weeks i found out about MRL and i was so happy xD so first of all big thanks u made my work easier , now lets begin :

Downloaded and installed MRL  
Installed all packs
Connected my arduino ( 2 servos + a cam) , for tracking.
Started MRL , started arduino servc , checked my servos "ALL GOOD" "Cam:Worky normaly at pc" .
Went at python Typed this code that i found here :

tracker = Runtime.createAndStart("tracker","Tracking")
tracker.setRestPosition(90,90);
tracker.setSerialPort("COM20");
tracker.setXServoPin(8);
tracker.setYServoPin(12);
tracker.setCameraIndex(1);
 
tracker.initTracking();
tracker.initControl();
tracker.initInput();
 
tracker.trackLKPoint();
 
Tried to run it , didnt started opencv and so on , ive sended a Noworky , 
Tried to open opencv it gives me this error :

NoClassDefFoundError com/googlecode/javacv/cpp/opencv_core$lpllmage .

*Note : am thinking maybe my cam isnt working well with opencv and such thats why its giving me this error , 
Going to python now runing the code above : 


1689815 [Thread-50] ERROR class org.myrobotlab.framework.Service  - Python error - ------Traceback (most recent call last):

In that chaos error i managed to see an error at line 1 it says xD not rly sure what that means.

Anyways ill wait till next week to get my camera for raspi and move MRL there since my project is to make a robot following  a color,an object,a face ... wait a sec ... please tell me that MRL can work on raspi without the need of the pc ? i mean autonomous not like now with arduino and camera etc.

Well thats all thanks again .

 

Alessandruino

9 years ago

Hi badsoap and welcome :)

The problem is with opencv... You are using a raspi right?

Let us check dependencies and opencv native files... We ll let you know how to proceed soon

Hello , no am currently using pc, ill be using raspi next week though  i might have same problem there too so please take your time do your best and thank you so much for this.

Alessandruino

9 years ago

In reply to by BadSoap

ok bad soap.... i see you are running on a windows 32 bit machine...right?

1) run mrl, start opencv service and then hit the capture button...then send noworky

2) post a screenshot of the contenent of the libraries/jar folder and the libraries/native/x86.32 folder please

I'm experiencing the same or similar condition. I can't start the InMoov service as it fails with the log file message

26946 [runtime] INFO  class org.myrobotlab.framework.repo.Repo  - checking peer org.myrobotlab.service.OpenCV dependencies
26946 [runtime] ERROR class org.myrobotlab.framework.Service  - NoClassDefFoundError com/googlecode/javacv/cpp/opencv_core$IplImage
26947 [runtime] ERROR class org.myrobotlab.logging.Logging  - ------
java.lang.reflect.InvocationTargetException
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.myrobotlab.framework.Service.invokeOn(Service.java:1294)
at org.myrobotlab.framework.Service.invoke(Service.java:1242)
at org.myrobotlab.framework.Service.run(Service.java:874)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: com/googlecode/javacv/cpp/opencv_core$IplImage
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at org.myrobotlab.framework.Peers.getPeers(Peers.java:123)
at org.myrobotlab.framework.Peers.getPeers(Peers.java:116)
at org.myrobotlab.framework.repo.Repo.isServiceTypeInstalled(Repo.java:333)
at org.myrobotlab.framework.repo.Repo.isServiceTypeInstalled(Repo.java:339)
at org.myrobotlab.framework.repo.Repo.isServiceTypeInstalled(Repo.java:339)
at org.myrobotlab.service.Runtime.createService(Runtime.java:1439)
at org.myrobotlab.service.Runtime.create(Runtime.java:1375)
at org.myrobotlab.service.Runtime.createAndStart(Runtime.java:1357)
... 8 more
Caused by: java.lang.ClassNotFoundException: com.googlecode.javacv.cpp.opencv_core$IplImage
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 21 more
------
 

I'm assuming it is related to the the issue when I try to install all and it No Worky with one download

info retrieve edu.northwestern.topcodes.1.0 
error download failed: edu.northwestern.topcodes#topcodes;1.0!JavaWebCam.dll(native) 
 
It appears that the opencv files are missing. This is on Windows 8.1 32bit.