Could you help me install the webgui services?
When I try to install I received
64202 [runtime] ERROR class org.myrobotlab.service.Runtime - error unresolved dependency: org.java_websocket.websocket#websocket;1.2: not found
- mrl 1.0.119
- Linux rspi 4.1.7-v7+ #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015 armv7l GNU/Linux
- root@rspi:~/mrl# update-alternatives --config java
Są 2 dostępne alternatywy dla java (dostarczające /usr/bin/java).
Wybór Ścieżka Priorytet Status
* 0 /usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/jre/bin/java 318 tryb auto
1 /opt/jdk1.8.0_60/bin/java 1 tryb ręczny
2 /usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/jre/bin/java 318 tryb ręczny
Try the latest ? RasPI support in 1.0.119 is unknown.
It looks like you're using a ras pi? maybe a ras pi 2 ? I think it's probably best if you try the latest QA release (built from trunk).
The latest release is here:
More info about the QA testing & stuff is here:
Maybe you can test it out and let us know if it's worky for you!
Yep.... As Kevin says you
Yep.... As Kevin says you should use latest mrl version, you can download at the link he posted...
But before "installing" the new one do this :
1) delete the old myrobotlab folder where you installed it
2) delte the .repo folder which is in the main folder of your raspi ( if you can t see it, use ls -a command )
3) make a new, shiny folder and put the "latest jar" in
4) install webgui service
Hope it helps, let us know
Thx guys,With latest QA
With latest QA release webgui is working on my rapsbery pi 2, but appear me some questions (;
1. Is there any chance to autostart webgui with python script ?
2. I notice that new QA Arduino service doesn't see me arduino port.
but system recognize arduino correctly.
DMESG: 1-1.5:1.0: ttyACM0: USB ACM device
Bus 001 Device 005: ID 2341:0001 Arduino SA Uno (CDC ACM)
3. I'm going to install opencv '2.4.10' base on this tutorial
should work with this QA?
ad 3. opencv 2.4.10 don't work with latest QA relase in my rspi:
Caused by: java.lang.UnsatisfiedLinkError: no opencv_core in java.library.path
QA release has a new version of Arduino code
Good news is, yes you can start the web gui by default from the command line.
On the command line you can specify a list of services (and their names)
Try starting MRL with the following command:
also, the arduino will require to be programmed with the code from the arduino service from the QA release. (it's updated since 1.0.119) so re-program the Arduino with the code from the latest release and it should be ok )
Lastly, opencv might not be worky on the the ras pi / arm 7 yet. Maybe if i have some free time tomorrow I can test it out to see what's missing.
Hope that helps! Thanks for helping us test.
good news is that webgui
[ 0.195186] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev2
[ 0.700370] console [ttyAMA0] enabled
[ 4.112828] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device
root@rspi:~/mlr# dmesg |grep Arduino
[ 3.189198] usb 1-1.2: Product: Arduino Uno
[ 3.195309] usb 1-1.2: Manufacturer: Arduino (www.arduino.cc)
12:57:27.964 [adru2.serial] ERROR c.myrobotlab.framework.Service - adru2.serial error NoClassDefFoundError jssc/SerialPortEventListener
12:57:27.969 [adru2.serial_outbox_0] DEBUG c.myrobotlab.framework.Outbox - no static route for adru2.serial.publishError
I suspect that you did not start with a "clean" install.
When you run and install MyRobotLab, it caches a bunch of files in a hidden directory in your users home directory.
if you do "ls -a" in unix it will show the hidden files. Filenames that start with a period "." are "hidden"
I recommend you start with a clean download of the "myrobotlab.jar" place it in a new directory
but before you start, make sure you delete that temporary ".repo" directory that gets created. This directory is likely caching some data from when you installed 1.0.119...
remember, the ".repo" directory is in your home directory.
"ls -a ~/" will show all files and directories in your home directory. you must first run
"rm -rf ~/.repo" before you try to install the QA release.
Hopefully that will resolve your issue. I use the QA release of MRL on my RasPI 2, so I would hope/expect it should also be worky for you too.
Kevin, followed your
Early, the connection to the arduino was working on old mrl. In the meanwhile I installed opencv and make rpi-upadte to
Linux rspi 4.1.10-v7+ #821 SMP PREEMPT Sat Oct 10 00:16:28 BST 2015 armv7l GNU/Linux
Also, could you tell me which way I could send you logs?
latest tests looked good
I just tried a clean install. I downloaded the latest QA release. I removed my .repo directory. I put the mrl into a new clean directory ~/mrl_dev.
I then started it up, installed the arduino sevice. restart MRL so the install took effect.
And I was able to connect to the arduino. I suspect something isn't quite right. The class not found error that you are seeing should be provided by the file
If you installed everything correctly, you should have that file inside your libraries/jar folder of your MRL install. If not, something is goofy.
For reference, MRL is downloading these jar files and dependencies from https://github.com/MyRobotLab/repo/tree/develop/com.googlecode.jssc/2.8…
You could try just grabbing the jssc jar file from that link (use the "raw" link to download the binary file) and put it in your libraries/jar directory... but I suspect you probably don't have the latest release or something else happened.
When I start MRL, I was just using the simple command line "java -jar myrobotlab.jar" on the RasPI2. I was not using the WebGui. Not sure if that makes the difference here.
I don't now way install new mrl did't created this file. Also I tried install mrl on windows machine and file wasn't create too.
Once again - thank you.
I will ask you about my opencv investigation (;
Ehi Darek..there was a
Ehi Darek..there was a problem with repo (develop branch) about opencv on raspi.... Look in your libraries/jar folder and a opencv-linux-arm.jar should be missing...
I fixed the repo stuff.... so if you want you can delete all over again and reinstall all , or just download the file and put it in the /jar folder :
To make it worky you should follow this till step 5 of this guide, it will install the opencv dependencies, like if you are going to recompile it, but you 'll stop at step 5 :
let us know
Ale, You are right. The
Ale, You are right. The opencv-linux-arm.jar was missing. So I clean all directory and install mrl once again.
The missing file appeared!
After that I make 0-5 steps of the tutorial. Start opencv but video didn't appeared.
In log file I found something as:
[runtime_outbox_0] DEBUG c.myrobotlab.framework.Outbox - no static route for runtime.createAndStart
19:57:18.735 [cv2] INFO c.myrobotlab.framework.Service - adding addListener from cv2.publishState to gui.getState
19:57:18.737 [cv2] DEBUG c.myrobotlab.framework.Outbox - msg [msg cv2.addListener --> .addListener() - 1445536638737]
19:57:18.739 [cv2] DEBUG org.myrobotlab.framework.Inbox - cv2.msgBox -1 2
19:57:18.739 [cv2_outbox_0] DEBUG c.myrobotlab.framework.Outbox - no static route for cv2.addListener
arm6 vs arm7 ?
I just tired a clean install on my ras pi 2 , i also do not see any video. Basically, I see the following two log messages, then nothing.
missing library for ras pi 2 libunicap2
I found I could get it worky by running the following command on the raspi:
"sudo apt-get install libunicap2"
hope it works for you too!
no worky ); I found
no worky );
I found this:
A list of other dependencies
A list of other dependencies which may be required :
sudo apt-get -y install libpng12-0 libpng12-dev libpng++-dev libpng3
sudo apt-get -y install libpnglite-dev libpngwriter0-dev libpngwriter0c2
sudo apt-get -y install zlib1g-dbg zlib1g zlib1g-dev
sudo apt-get -y install libjasper-dev libjasper-runtime libjasper1
sudo apt-get -y install pngtools libtiff4-dev libtiff4 libtiffxx0c2 libtiff-tools
sudo apt-get -y install libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-prog
sudo apt-get -y install libavcodec53 libavcodec-dev libavformat53 libavformat-dev libavutil51 libavutil-dev libswscale2 libswscale-dev
sudo apt-get -y install libgstreamer0.10-0-dbg libgstreamer0.10-0 libgstreamer0.10-dev
sudo apt-get -y install libxine1-ffmpeg libxine-dev libxine1-bin
sudo apt-get -y install libunicap2 libunicap2-dev
sudo apt-get -y install libdc1394-22-dev libdc1394-22 libdc1394-utils
sudo apt-get -y install swig
I suggest using the old gui
I suggest using the old gui for opencv... New webgui is no worky with opencv at the moment...
no -worky (: root@rspi:~/mrl#
no -worky (:
root@rspi:~/mrl# cat agent.log |grep ERROR
09:44:40.091 [main] ERROR c.myrobotlab.framework.Service - python error java.lang.NullPointerException
09:45:15.433 [ocv_videoProcessor] ERROR class org.myrobotlab.logging.Logging - ------
Also, I loss working opencv in python environment.
File "test_video.py", line 5, in <module>
ImportError: No module named cv2
so.. I think that good idea could be share same custom rspi_mrl.img for user raspberry pi where mrl will be installed perfect (; or use a docker container for rspi. Pls, consider this possibility.