Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+PCL)

Moderators: odroid, mdrjr

Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+PCL)

Unread postby murrman » Sun Dec 07, 2014 11:46 am

I present Ubuntu 14.04 Robotics Edition for ODROID-U3. This image is based on the official ODROID Ubuntu 14.04 LTS server version provided by mdrjr (http://forum.odroid.com/viewtopic.php?f=77&t=5234).

Features:
Ubuntu Server 14.04.1 LTS with LXDE
OpenCV 2.4.9
ROS Indigo(Bare Bones)
OpenNI 2.2 (Including Primesense drivers for Asus Xtion)
Point Cloud Library 1.7.2

Download the image here:
http://oph.mdrjr.net/murrman/ubuntu-14. ... 228.img.xz

MD5 checksum:
http://oph.mdrjr.net/murrman/ubuntu-14. ... .xz.md5sum

Sample code repository:
https://github.com/cmcmurrough/odroid-development

Login:
Username: odroid
Password: odroid

Username: root
Password: odroid

For normal use, use the odroid account. The root account is enabled by default.

Update History:
12/06/2014 - Initial release
12/28/2014 - Bug fixes, OpenCV NEON support activated

Acknowledgements:
Base OS image and file hosting provided by mdrjr

Installation notes for building this image from the base image are provided below. This may answer some questions about how various modules are built and installed.
Code: Select all
### LOGIN ###
username: root
password: odroid

### SETUP UBUNTU ###
sudo apt-get update
sudo apt-get install lxde gedit build-essential checkinstall cmake cmake-curses-gui pkg-config chromium-browser gparted wicd guvcview

### ADD USER ACCOUNT ###
sudo adduser odroid
sudo adduser odroid sudo
sudo adduser odroid netdev

### LOGIN ###
username: odroid
password: odroid

### CONFIGURE LXDE ###
1. Set up welcome screen (sudo gedit /etc/lxdm/default.conf)
2. Resize partition to 7168 MB with gparted
3. Check wifi using wicd
4. Set background to solid color
5. Remove logout application launch bar (lower right corner)
6. Set taskbar icons (pcmanfm, lxterminal, chromium, wicd)
7. Disable screensaver
8. Open wicd, properties menu, general settings. Enter 'wlan0' under Wireless interface

### FIX LOGOUT GUI PERMISSION BUG (https://tracker.zentyal.org/issues/360) ###
1. sudo apt-get install systemd-shim
2. Edit lxdm session file (/etc/pam.d/lxdm), add the following line
session required pam_systemd.so

### FIX WAITING FOR NETWORK CONFIGURATION BUG ###
1. Edit network interfaces file (sudo gedit /etc/network/interfaces), replace with the following
auto lo
iface lo inet loopback

### RUN ODROID UTILITY ###
sudo -s
wget -O /usr/local/bin/odroid-utility.sh https://raw.githubusercontent.com/mdrjr/odroid-utility/master/odroid-utility.sh
chmod +x /usr/local/bin/odroid-utility.sh
odroid-utility.sh

### INSTALL OPENCV DEPENDENCIES ###
sudo apt-get install build-essential checkinstall cmake pkg-config yasm libtiff4-dev libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev python-dev python-numpy libqt4-dev libgtk2.0-dev libavcodec-dev libavformat-dev libswscale-dev libtbb2 libtbb-dev

### GET OPENCV SOURCE ###
cd ~
wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip
unzip opencv-2.4.9.zip
rm opencv-2.4.9.zip
cd opencv-2.4.9

### BUILD AND INSTALL OPENCV ###
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_OPENGL=ON -DWITH_V4L=ON -DWITH_TBB=ON -DBUILD_TBB=ON -DENABLE_VFPV3=ON -DENABLE_NEON=ON ..
make
sudo make install

### INSTALL OPENNI (https://github.com/cmcmurrough/OpenNI2) ###
cd ~
sudo apt-get install -y g++ python libusb-1.0-0-dev libudev-dev openjdk-6-jdk freeglut3-dev doxygen graphviz
git clone https://github.com/cmcmurrough/OpenNI2
cd OpenNI2
PLATFORM=Arm make
cd Packaging && python ReleaseVersion.py Arm
mv Final/OpenNI-Linux-Arm-2.2.tar.bz2 ~
cd ~
tar -xvf OpenNI-Linux-Arm-2.2.tar.bz2
rm -rf OpenNI2
rm OpenNI-Linux-Arm-2.2.tar.bz2
cd OpenNI-Linux-Arm-2.2
sudo sh install.sh

### INSTALL PCL DEPENDENCIES ###
sudo apt-get install freeglut3-dev libboost-all-dev libeigen3-dev libflann-dev libvtk5-dev libusb-1.0-0-dev libqhull-dev

### GET PCL SOURCE (RELEASE 1.7.2) ###
cd ~
git clone https://github.com/PointCloudLibrary/pcl pcl-1.7.2
cd pcl-1.7.2

### BUILD AND INSTALL PCL ###
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
make
sudo make install

### INSTALL ROS (http://wiki.ros.org/indigo/Installation/UbuntuARM) ###
cd ~
sudo update-locale LANG=C LANGUAGE=C LC_ALL=C LC_MESSAGES=POSIX

sudo sh -c 'echo "deb http://packages.namniart.com/repos/ros trusty main" > /etc/apt/sources.list.d/ros-latest.list'

wget http://packages.namniart.com/repos/namniart.key -O - | sudo apt-key add -

sudo apt-get update
sudo apt-get install ros-indigo-ros-base

sudo apt-get install python-rosdep
sudo rosdep init
rosdep update

echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/.bashrc

sudo apt-get install python-rosinstall

### GET ODROID-DEVELOPMENT EXAMPLES ###
cd ~
git clone https://github.com/cmcmurrough/odroid-development.git


I hope you find this image useful, and as always, suggestions and feedback are appreciated!

Image
Last edited by murrman on Mon Dec 29, 2014 10:41 am, edited 1 time in total.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby Mzahana » Mon Dec 15, 2014 3:15 am

Thanks for sharing this.It's very interesting to me as I work on robots. However I have, maybe a naive, question, but I'd appreciate the clarifying answer.

How would this Ubuntu Robotics edition be more suitable for robotics applications than the normal Ubuntu edition?

Is it just installing couple of more libraries/software..etc as one may do on a normal Ubuntu edition, or actually tweaking the Ubuntu kernel itself to better serve robotics application?

Thank you.
Mzahana
 
Posts: 36
Joined: Mon Dec 15, 2014 3:08 am
languages_spoken: English, Arabic
ODROIDs: Odroid U3, C0, XU4

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Mon Dec 15, 2014 7:44 am

This image is really just a stripped-down version of Ubuntu (Ubuntu server) with common robotics stuff installed. Yes, you could do it yourself following my notes or on your own.

The main benefit is that many robotics software packages (OpenNI, OpenCV, PCL, ROS, etc) can be difficult to install on a non x86 computer without building from source. Even when building from source, you often have to tweak some configurations to get it to work. My goal is to provide a "ready to go" image for ODROID users to use in their own projects, especially those who may not necessarily want to spend a considerable amount of time figuring out how to build and install something from source on the ODROID that they may already be familiar with on a desktop PC.

The image uses the same kernel as the ODROID official Ubuntu 14.04, there is nothing "robot specific".
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby Mzahana » Mon Dec 15, 2014 8:36 am

Thanks for the clarification.
Mzahana
 
Posts: 36
Joined: Mon Dec 15, 2014 3:08 am
languages_spoken: English, Arabic
ODROIDs: Odroid U3, C0, XU4

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby newroad » Mon Dec 22, 2014 2:15 pm

Hi,

Great work sir for this OS.

At the bootup image takes long time to reach the login screen.

Can you suggest what can I do to reduce the boot up time for this particular image.
I dont really need any network support BTW, it looks for network around 60 seconds.

I appreciate your response.
newroad
 
Posts: 50
Joined: Fri Aug 30, 2013 6:08 am
languages_spoken: english
ODROIDs: U2, U3

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Tue Dec 23, 2014 4:22 am

Is it showing something along the lines of "Waiting up to 60 seconds for network configuration"? I see that sometimes with my other computers, but I never noticed it with this image because I always had the LAN plugged in.

There is a fix for this, it is a generic Ubuntu problem. I will look for it later today.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby newroad » Tue Dec 23, 2014 6:58 am

Yeah I get the message "Waiting up to 60 seconds for network configuration" at the first boot screen

I am trying to reduce the boot time to minimum, just need opencv, UVC camera and sqlite db to work.
If you have other suggestions on minimizing boot time that would be great as well.
newroad
 
Posts: 50
Joined: Fri Aug 30, 2013 6:08 am
languages_spoken: english
ODROIDs: U2, U3

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Thu Dec 25, 2014 3:11 pm

User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby thedinuka » Fri Dec 26, 2014 1:23 pm

Thanks for the image murrman,
Hope you won't mind a quick question. The OpenCV build in this image, does it support NEON? I see from your installation notes that you have enabled TBB but not NEON. Was there a specific reason for this?
thedinuka
 
Posts: 18
Joined: Wed Nov 27, 2013 3:33 pm
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Sat Dec 27, 2014 3:27 am

I think right now the ARM NEON optimizations are only implemented for Tegra devices running Android...

http://answers.opencv.org/question/1784 ... mizations/

I don't think compiling openCV for NEON will give any performance boost on this Ubuntu image, but I've never used NEON or done any testing myself.

If should be easy to recompile with NEON enabled, just follow the steps above and the "sudo make install" line should overwrite the NEON disabled installation.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby thedinuka » Sat Dec 27, 2014 8:27 pm

I'm not sure about the stable version of OpenCV in sourceforge, but the version in github has several functions that can use both NEON and opencl. Have a look at this..

https://github.com/Itseez/opencv/blob/m ... yramid.cpp

by the looks of it, compiling with NEON support should give a boost to these functions. I'm still not sure by how much though. Will try to measure it soon. Can you please let me know the exact flags to enable NEON?

I'd need to know whether my current build has neon support though. Do you know whether it is possible to check whether Opencv has been built with NEON support after it's been installed? A google search seems to not help
thedinuka
 
Posts: 18
Joined: Wed Nov 27, 2013 3:33 pm
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Sun Dec 28, 2014 4:09 am

My guess is that is is not enabled by default, but to check, you can try the following...

cd ~/opencv-2.4.9/build
ccmake .

That will bring up a list of cmake configuration options that were generated the last time cmake was run, which should be the options that were used to build openCV.

I need to make a few tweaks to this image, I will attempt a NEON build and include it with the update if everything goes well. I will try to post an update this weekend. If I get you a NEON enabled image, can you do a performance test and let us know if there was any speedup?
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby thedinuka » Sun Dec 28, 2014 9:23 am

I already have indigo installed on the factory default image of 14.04 and an OpenCV based feature tracking node. It would be easier for me to do a reinstall of OpenCV rather than doing a reimage. If that's possible, then I should be able to report back on performance improvement early next week.

However, if not, I can still try your updated image to check for and report on any improvements with NEON. It's just that this will take a bit more time.

Re. the way to check whether NEON is already enabled, your suggestion would work only if I manually installed OpenCV right? I think in my case OpenCV either came with the factory default image or got installed when installing ROS. Do you know whether it's possible to do the same check in such a situation?
thedinuka
 
Posts: 18
Joined: Wed Nov 27, 2013 3:33 pm
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Mon Dec 29, 2014 2:11 am

You are correct, that wouldn't work on your precompiled OS. I don't know how to check otherwise.

I just finished an updated image with NEON enabled and some other bug fixes, I will upload today. Let me know if you are able to do any tests.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby thedinuka » Mon Dec 29, 2014 9:00 am

yes, I can run some tests. Let me know here when you've uploaded the new image.
thedinuka
 
Posts: 18
Joined: Wed Nov 27, 2013 3:33 pm
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Mon Dec 29, 2014 10:44 am

Image updated. Fixed wifi, slow bootup issue when no ethernet is present, logout menu permission issue, and enabled OpenCV NEON support.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby newroad » Mon Dec 29, 2014 11:09 am

Thank you
newroad
 
Posts: 50
Joined: Fri Aug 30, 2013 6:08 am
languages_spoken: english
ODROIDs: U2, U3

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby thedinuka » Tue Dec 30, 2014 7:08 am

Thanks for the new image. I just completed a reinstall of opencv+neon on my trusty/indigo system using your instructions. But it seems like ros is still looking for opencv libraries in the old path which is "/usr/lib/arm-linux-gnueabihf" whereas your instructions (I believe) install libs to usr/local. Appreciate if you could let me know whether this can be fixed w/o a complete reinstall (after changing the install path prefix). For now, I might try simply copying the opencv libs to the location that ros expects them to be.
thedinuka
 
Posts: 18
Joined: Wed Nov 27, 2013 3:33 pm
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Tue Dec 30, 2014 7:44 am

thedinuka wrote:Thanks for the new image. I just completed a reinstall of opencv+neon on my trusty/indigo system using your instructions. But it seems like ros is still looking for opencv libraries in the old path which is "/usr/lib/arm-linux-gnueabihf" whereas your instructions (I believe) install libs to usr/local. Appreciate if you could let me know whether this can be fixed w/o a complete reinstall (after changing the install path prefix). For now, I might try simply copying the opencv libs to the location that ros expects them to be.


Are you having the problem with my image, or your own trusty/indigo setup? I installed ROS after OpenCV on my image, and when I made the fix I reinstalled ROS to the same directory as before.

I'm not sure how to change the OpenCV path in ROS. There are probably some hacky ways to do it (like your suggestion of copying the libs somewhere else).
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby thedinuka » Tue Dec 30, 2014 8:23 am

It was my own setup. Before the reinstall I had opencv 2.4.8 so we had to copy the libs to the right location AND also create symbolic links from the 2.4.9 libs to 2.4.8 libs. I know its hacky but it worked.

More importantly, with NEON support I see a clear speed improvement. The cv::calcOpticalFlowPyrLK function is now almost twice as fast as without NEON!! I haven't run tests with other functions.

I'll probably start over with a clean image and install OpenCV and then ROS like you suggested. I suppose that will force ROS to use the existing OpenCV installation as opposed to installing it again.
thedinuka
 
Posts: 18
Joined: Wed Nov 27, 2013 3:33 pm
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Tue Dec 30, 2014 1:31 pm

Try downloading my image and see if your NEON code and ROS stuff works, it should have everything set up already.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby streetboy » Tue Dec 30, 2014 2:30 pm

This NEON enabled OpenCV gives me a huge performance boost! Appreciate your hard work.
User avatar
streetboy
 
Posts: 196
Joined: Tue Feb 26, 2013 6:43 pm
languages_spoken: english
ODROIDs: ODROID-X,U2,XU3-Lite
C1, XU4

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby thedinuka » Tue Dec 30, 2014 2:47 pm

This NEON enabled OpenCV gives me a huge performance boost! Appreciate your hard work.


if you don't mind me asking, what OpenCV functions are you using that are being optimized by NEON? In my case those are cv::calcOpticalFlowPyrLK and cv::buildOpticalFlowPyramid.
It would be nice to know what other functions have NEON implementations.
thedinuka
 
Posts: 18
Joined: Wed Nov 27, 2013 3:33 pm
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Wed Dec 31, 2014 12:50 am

Another interesting tidbit to throw in this discussion is that OpenCV 3.0 includes many more NEON accelerated functions than any previous version. I stuck with 2.4.9 for this image since 3.0 is still in beta, but you may want to try it out if NEON performance is really important in your applications.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Wed Dec 31, 2014 12:50 am

streetboy wrote:This NEON enabled OpenCV gives me a huge performance boost! Appreciate your hard work.


Nice to hear, I guess it wasn't pointless after all!
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby thedinuka » Fri Jan 02, 2015 12:53 pm

Try downloading my image and see if your NEON code and ROS stuff works, it should have everything set up already


So, I'm trying to get my ros nodes to work with your image. I need to install some basic ros stacks such as the ros-indigo-image-pipeline. but when attempting to do that with sudo apt-get install ros-indigo-image-pipeline, apt-get asks to install all opencv libs again. I have a feeling that if I did this I would be back in square 1 with ros nodes using ros installation of opencv rather than the one you've build and installed with NEON. Has anyone else here had the same problem? Appreciate some insights into this.
thedinuka
 
Posts: 18
Joined: Wed Nov 27, 2013 3:33 pm
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Sat Jan 03, 2015 2:04 am

In this post, it is suggested to rebuild ROS from source...

http://answers.ros.org/question/186334/ ... e-install/

The problem seems to be that ROS depends on libopencv-dev. I once had a problem with something else where a program depended on something-dev, but I wasn't able to install something-dev from apt-get. I was able to fix it by making something-dev point to my source installation which was named something-1.0-dev, and that fixed it. I don't remember exactly how I did it, but I bet you can fix this by making opencv-dev an alias for whatever the source installation is named.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Sat Jan 03, 2015 2:08 am

I think I found it. You use the "equivs" package. Check this link and let me know how it goes...

http://shallowsky.com/blog/linux/instal ... ncies.html
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby newroad » Mon Jan 05, 2015 8:29 am

Hi,

I want to remove all the boot messages that get printed. I updated the boot.scr with quiet and loglevel=0 and compiled again, I am still seeing boot messages.

Any way to completely remove all the messages at the startup?
newroad
 
Posts: 50
Joined: Fri Aug 30, 2013 6:08 am
languages_spoken: english
ODROIDs: U2, U3

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Tue Jan 06, 2015 8:53 am

I'm not sure about that, try asking on the thread for the base image.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby whyodroid » Tue Jan 06, 2015 4:06 pm

Can anybody provide instructions to access the server image using my laptop? like there is no IP given.
whyodroid
 
Posts: 3
Joined: Tue Jan 06, 2015 3:52 pm
languages_spoken: english
ODROIDs: u3 and x2

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby odroid » Tue Jan 06, 2015 5:59 pm

whyodroid wrote:Can anybody provide instructions to access the server image using my laptop? like there is no IP given.

Do not hijack ! :evil: Create your new post for the question.
User avatar
odroid
Site Admin
 
Posts: 29098
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby nickhuan » Thu Jan 22, 2015 1:01 am

Thanks a lot for the convenient image, murrman. While I faced a problem when I tried to clone packages from github. I got:

"fatal unable to access 'https://github.com/xxxx/xxxxxxx.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

I'm new to ARM system. May I know is this a general thing I need to solve at beginning? Or a special one for this image?

Thanks a lot

Nick
nickhuan
 
Posts: 17
Joined: Mon Dec 15, 2014 6:15 am
languages_spoken: english
ODROIDs: Odroid U3

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Fri Jan 23, 2015 10:34 am

Check this link and see if it helps...

http://derekmolloy.ie/fixing-git-and-cu ... bone-blac/
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby spartacusRising » Sun Jan 25, 2015 8:13 am

Thanks for this image murrman. I am trying to use my wifi but neither the module 3 or module 4 is working. What should I do?
spartacusRising
 
Posts: 10
Joined: Fri Apr 11, 2014 12:55 am
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby nickhuan » Mon Jan 26, 2015 1:48 am

murrman wrote:Check this link and see if it helps...

http://derekmolloy.ie/fixing-git-and-cu ... bone-blac/


Thanks murrman, Thre bad solution solved the problem. I can git clone when turn sslVerify into false, which is why it is called the bad solution. While it doesn't work for the better solution, which update the ca-certificates. But it somehow doesn't solve my problem.

Thanks
nickhuan
 
Posts: 17
Joined: Mon Dec 15, 2014 6:15 am
languages_spoken: english
ODROIDs: Odroid U3

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby nickhuan » Mon Jan 26, 2015 6:18 am

oops, I found the reason... I think I need to change the system date to now. (make sure the date in within the validity period of the certificate?)

It just worked after I changed the date of the OS.
nickhuan
 
Posts: 17
Joined: Mon Dec 15, 2014 6:15 am
languages_spoken: english
ODROIDs: Odroid U3

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby stiebel » Sun Feb 15, 2015 7:17 pm

Hi murrman,
thanks for your great Robotics U3 image!

Could you imagine to build a Robotics C1 image, too?
I want to use Opencv on an "as small as possible" board
and I would love to use the 25$ C1-Touch-TFT shield as well.
http://www.hardkernel.com/main/products ... 2060963922

So a Robotics C1 image would be the perfect match not only for me I guess.
I don't own a C1 yet, but I certainly buy a couple, if there is a chance
to have a running opencv on it.

Is it hard work to build such an image?
If you don't want to build one, could you give me advice to do so?

Thanks anyway,
Roland
stiebel
 
Posts: 21
Joined: Thu Oct 03, 2013 8:37 pm
languages_spoken: english, german
ODROIDs: U2, U3, XU

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Thu Feb 19, 2015 9:27 am

Hi Stiebel,

I recently acquired a C1 and I am planning on creating an image for it. I had an issue compiling one of the libraries a couple of weeks ago and haven't had a chance to try again. If you just need OpenCV in the short term, I can send you my install notes (I think OpenCV built fine for me on the C1, but I don't remember exactly).

I should be able to pick up the project again towards the end of the month.

Chris
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby stiebel » Thu Feb 19, 2015 10:13 pm

Hi murrman,
thanks for your answer!
"end of the month" ist certainly close enough.
So if there is a chance to have you creating an image I am fine to wait for that.
I am into another project at the moment myself, so I will not need to have any
results before Easter.
Thanks again for your effort!
Roland
stiebel
 
Posts: 21
Joined: Thu Oct 03, 2013 8:37 pm
languages_spoken: english, german
ODROIDs: U2, U3, XU

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby mbonamusa » Fri Feb 20, 2015 2:19 am

Hi Stiebel

compiling opencv for C1 board or any other odroid board under ubuntu is easy.
If Murrman does not correct me, these are the basic steps:

1.- Install needed packages (Packages can vary depending on your needs)
sudo apt-get install build-essential cmake libgtk2.0-dev libjpeg-dev libeigen2-dev libv4l-dev libavcodec-dev libavformat-dev libswscale-dev libgtkglext1 libgtkglext1-dev

2.- Get opencv 2.4.x version (I'm using 2.4.9)
wget http://garr.dl.sourceforge.net/project/ ... -2.4.x.zip
unzip opencv-2.4.x.zip
cd opencv-2.4.x
mkdir build
cd build

3.- Build (Include options "-D" can vary depending on your needs)
cmake -D BUILD_TBB=ON -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_OPENGL=ON ..
Additional usefull includes:
-D WITH_QT=ON
-D WITH_OPENCL=OFF
-D ENABLE_NEON=ON
-D BUILD_[opencv module]=OFF (example: -D BUILD_opencv_gpu=OFF)

make
sudo make install

edit: /etc/ld.so.conf.d/opencv.conf
add: /usr/local/lib

sudo ldconfig

edit: /etc/bash.bashrc
add:
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH

That's all!
mbonamusa
 
Posts: 186
Joined: Mon Feb 25, 2013 9:08 pm
languages_spoken: catalan, spanish, english
ODROIDs: ODROID-X2, U2, U3, XU4, C1, C2

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby HoRo » Thu Mar 19, 2015 3:26 am

Hello,

has the Odroid U3 enough performance to run ROS and a AR-Tag based Pose Estimation (e.g. with ar_pose)? Image sensor will be a simple webcam e.g. Logitech C270 ....
High frate rates aren't required, >10hz should be ok.

would be nice, if you could share your experiences with the Odroid U3 & ROS :)
HoRo
 
Posts: 6
Joined: Thu Mar 19, 2015 3:14 am
languages_spoken: english, german
ODROIDs: zero atm :(

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby stiebel » Thu Mar 19, 2015 5:19 am

Hi HoRo,
I will share my experiences an soon as I have some...
Unfortunatly I had to work on other projects.
I hope my U3 will get more of my attention after Easter.
Greetings
Roland
stiebel
 
Posts: 21
Joined: Thu Oct 03, 2013 8:37 pm
languages_spoken: english, german
ODROIDs: U2, U3, XU

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby HoRo » Tue Mar 24, 2015 1:48 am

Hello,

is a 8gb eMMc Modul big enough for the Ubuntu 14.04 Robotics Edition?
And how much space is left after installing it?
HoRo
 
Posts: 6
Joined: Thu Mar 19, 2015 3:14 am
languages_spoken: english, german
ODROIDs: zero atm :(

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby mbonamusa » Thu Mar 26, 2015 7:00 pm

After compilation disk is almost full. If you remove all opencv generated files then you'll have about 2.2G of free space.
I can't help you with ROS. I haven't any experience.
mbonamusa
 
Posts: 186
Joined: Mon Feb 25, 2013 9:08 pm
languages_spoken: catalan, spanish, english
ODROIDs: ODROID-X2, U2, U3, XU4, C1, C2

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby newroad » Sun Mar 29, 2015 1:12 pm

Dear Murrman

Any possibility of an image for Odroid C1 with Opencv.
newroad
 
Posts: 50
Joined: Fri Aug 30, 2013 6:08 am
languages_spoken: english
ODROIDs: U2, U3

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Mon Mar 30, 2015 8:46 am

I just picked this project back up. If I don't hit any roadblocks, I will upload tomorrow.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby newroad » Mon Mar 30, 2015 11:07 pm

Thanks
newroad
 
Posts: 50
Joined: Fri Aug 30, 2013 6:08 am
languages_spoken: english
ODROIDs: U2, U3

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby murrman » Fri Apr 03, 2015 9:54 am

OK, I ran into some problems but I think everything is working now. Once the PCL compile finishes, I can start the upload of the C1 version. Sorry for the delay.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 14.04 Robotics Edition for ODROID-U3 (ROS+OpenCV+

Unread postby TinGoose » Fri Jun 19, 2015 9:35 pm

Good day.

We have problems running g_ether module with your image. We are trying to use mini-usb port as usb-ethernet device. modprobe g_ether runs ok, we see nothing suspecious in dmesg. But host machine does not see any sort of usb connection. No dmesg events when we plug cable in, no lsusb entries from odroid.
TinGoose
 
Posts: 28
Joined: Thu Aug 22, 2013 12:22 am
languages_spoken: english
ODROIDs: X2, U2, lots of U3, XU, XU3, lots of W

Next

Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 2 guests