Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL) U2

Moderators: mdrjr, odroid

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby murrman » Sun Dec 15, 2013 1:53 am

stiebel wrote:Hi murrman,
your Robotics Edition is great,
opencv works out of the box and my post-calculation is still faster then the 30fps of the webcam...
Thanks a lot!

I wantet to use the U2 as a "video input extension" for my XU to keep
the XU cpu-power for other tasks.
But seeing the low cpu-usage on the U2 I think my XU could handle both,
the video input analysis and the main tasks.

Do you have a Robotics Edition for the XU as well?
If I get the OpenCV and the XU-extension I should be fine.

greetings
Roland

PS : I run the inexpensive maestro board (RC Servo Controller) from pololu to create 12 pwm Signals with
customized timing from the USB port. This is great for Robotics!


Hi Roland,

I'm glad you find this useful. I am planning an XU version, but I wanted to move to ROS Hydro and there seems to be an unresolved issue with the ARM platform (I'm hoping this will be fixed soon). I may go ahead and make a Groovy version for XU since I don't know when the Hydro issue will be fixed.

Yes, I have used the Maestro before. It is nice for controlling servos. I also use the Teensy microcontroller from PJRC for general purpose IO (servos, I2C, GPIO, etc).
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby stiebel » Sun Dec 15, 2013 8:21 pm

I also use the Teensy microcontroller from PJRC for general purpose IO (servos, I2C, GPIO, etc).

Great, I didn't know that one. I just ordered one...

I may go ahead and make a Groovy version for XU

That would be great!
With the Teensy I can overcome the problem of the missing GPIOs on the U2,
but I still need 4 USB sockets and I think I could also find same additional tasks
with this "little extra power" of the XU.

So I will sit and wait for your XU-robotics-version and can offer me and my team to volunteer with beta testing it.

Thanks for your work!
opensource is great!

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

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby jadas » Mon Dec 16, 2013 2:35 am

First of all thank you murrman for your great build.

I have 3 questions though;
1) Had you any trouble with installing other ROS packages on top of the bare bone ROS installation ?
2) Can Lisp dependency in ROS Hydro bypassed by just installing packages one by one ?
3) I have read in a post you wrote that TBB in opencv is not applicable. Could you explain further ?

Thanks in advance.
jadas
 
Posts: 17
Joined: Tue Dec 10, 2013 7:53 pm
languages_spoken: english
ODROIDs: XU

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby murrman » Mon Dec 16, 2013 3:21 am

jadas wrote:First of all thank you murrman for your great build.

I have 3 questions though;
1) Had you any trouble with installing other ROS packages on top of the bare bone ROS installation ?
2) Can Lisp dependency in ROS Hydro bypassed by just installing packages one by one ?
3) I have read in a post you wrote that TBB in opencv is not applicable. Could you explain further ?

Thanks in advance.


1. No, but I haven't tried to install hardly anything other than the barebones comm stuff.
2. I'm not sure. I've seen posts claiming that this is possible, but when I tried to build from source myself I had issues and gave up quickly (I was facing some deadlines at the time, and couldn't work much on it).
3. TBB is great for OpenCV, I'm just not sure if you will get a performance increase on the ARM. Actually in hindsight, I probably shouldn't have made that original comment because I may have been confusing TBB with IPP (IPP includes specific enhancements for Intel processors and can accelerate OpenCV quite a bit). I included TBB mostly for compatibility with some existing projects. I would be interested to hear from anyone who might be able to clarify the "current state" of TBB on ARM.

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

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby Janos » Mon Dec 16, 2013 4:01 pm

Do I have a slightly degraded eMMC or does this image not fit within 8GB?
http://oph.mdrjr.net/murrman/linaro_ubuntu_12.11_robotics_v2_u2.img.xz
Janos
The Scottish BOINC Team
http://www.tsbt.co.uk/
Janos
 
Posts: 30
Joined: Mon Nov 11, 2013 8:31 am
languages_spoken: Scottish, English
ODROIDs: 2x XU, 4x U2

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby murrman » Mon Dec 16, 2013 11:15 pm

I use 8GB SD cards to make the image, it should work...
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby Janos » Mon Dec 16, 2013 11:19 pm

OK, thanks. I will try a different eMMC card this weekend and see what happens.
Janos
The Scottish BOINC Team
http://www.tsbt.co.uk/
Janos
 
Posts: 30
Joined: Mon Nov 11, 2013 8:31 am
languages_spoken: Scottish, English
ODROIDs: 2x XU, 4x U2

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby iago » Fri Dec 20, 2013 1:04 am

Hey there!

I have an app for Pandaboard ES + Xtion Pro Live + OpenCV + OpenNI2 that works well (~25fps) with QQVGA (160x120) depth maps. Recently I decided to try out an Odroid-U2 using this Robotics Edition image.
Everything goes well and the app is able to work @25 fps with QVGA resolution. BUT for some reason sometimes I get the following output in my terminal :

Bus Error
Process returned 135 (0x87)

Any of you guys know something about this error??

Thanks in advance!
iago
 
Posts: 13
Joined: Wed Sep 25, 2013 4:02 pm
languages_spoken: english, spanish

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby murrman » Fri Dec 20, 2013 6:53 am

iago wrote:Hey there!

I have an app for Pandaboard ES + Xtion Pro Live + OpenCV + OpenNI2 that works well (~25fps) with QQVGA (160x120) depth maps. Recently I decided to try out an Odroid-U2 using this Robotics Edition image.
Everything goes well and the app is able to work @25 fps with QVGA resolution. BUT for some reason sometimes I get the following output in my terminal :

Bus Error
Process returned 135 (0x87)

Any of you guys know something about this error??

Thanks in advance!


Is this in your own app, or the demo one that I provide?

When does the error happen (when you launch, after running for a while, etc)?
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby marcwolf » Fri Dec 20, 2013 10:39 am

Hi Folks.
First post so please be kind.

I've just purchased and awaiting delivery of the Odroid-XU, 16gb EMM, and Webcam. I have been working on a project for a while and essentially it always comes down to processing power, which I hope the Odroid can handle.
The concept is akin to James Camerons's Avatar expression capture except am only working with the lips. In time I can expand that.

Image

The test bed will be using this code until I use a webcam to provide live data

Code: Select all
from SimpleCV import Image, Display, Color
import time

img1 = Image("./Lips.jpg")

blue1 = (61,71,204)
green1 = (33,178,77)
yellow1 = (255,242,0)

img2 = img1.colorDistance(blue1)
blobs = img2.binarize(50).findBlobs()
print "BLUE Blobs %d " % len(blobs)

img2 = img1.colorDistance(green1)
blobs = img2.binarize(50).findBlobs()
print "Green Blobs %d " % len(blobs)

img2 = img1.colorDistance(yellow1)
blobs = img2.binarize(50).findBlobs()
print "Yellow Blobs %d " % len(blobs)


Using the blue blob as a reference I can then calculate the distance and co-ords of the surrounding green and yellow blobs and use this to drive servo's on an animatronic character.

I am hoping to get at least 3FPS if not more.. The information will be passed to another dedicated board for controlling the servo's. This will be the only program running on the ODroid, and desktops etc will not be used. Will prob be using Debian or Ubuntu with what ever optimisations for speed.

If anyone can help me with some bench marks of the above then that be great. I would use OpenCV natively but the blob handling is easier in SimpleCV.

Many many thanks
Marc

ps. No those are NOT my lips and I am a Guy :D
Walk quietly through this world.
Leave nothing but smiles and pawprints
User avatar
marcwolf
 
Posts: 16
Joined: Mon Nov 04, 2013 9:06 am
Location: Brisbane, Australia
languages_spoken: english
ODROIDs: ODroid-XU, 16gb EMMC, Webcam

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby g.cubed » Thu Dec 26, 2013 10:51 pm

I think there have been some recent developments (this month) for TBB on arm. I was having no luck getting it to build with OpenCV on another board, but have since had success.

The main difference I did over my previous attempt was removing the "-D -WITH_TBB=ON" flag, so my flags were:

Code: Select all
cmake -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D BUILD_TBB:BOOL="1" -D WITH_TBB:BOOL="1" ..


I'm new to ROS and have had no time to play, I've just been trying to setup the environment at this point...so can't comment on functionality or anything...
g.cubed
 
Posts: 43
Joined: Fri Jul 12, 2013 1:26 pm
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby stiebel » Fri Dec 27, 2013 2:43 am

Hi murrman

I also use the Teensy microcontroller from PJRC for general purpose IO (servos, I2C, GPIO, etc).

Great, I didn't know that one. I just ordered one...


I got my teensy some days ago.
There seems to be a powerfull CPU onboard to do lots of
calculation, but I rather want it to be a "port expander".
I guess you do so as well when you mension it in this context.

Do you have a special program running on the teensy or is there
a howto for using the teensy GPIO ports just from USB (as a virtual tty)
instead of writing teensy-standalone-programs?
Greetings
Roland
stiebel
 
Posts: 21
Joined: Thu Oct 03, 2013 8:37 pm
languages_spoken: english, german
ODROIDs: U2, U3, XU

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby murrman » Fri Dec 27, 2013 5:47 am

Generally what I do when I want to use a USB micrcontroller for IO is write serial packets to it as a virtual COM/tty port and interpret them accordingly in the firmware that I write for the device. As an example, lets say that our microcontroller is hooked up to 4 servos that we wish to control with a value from 0-255 (on an arduino type microcontroller, there is a servo function that expects a value like this). In the program running on the host (in this case, the ODROID), I would then assemble the packet like this...

[START_BYTE] [SERVO_1] [SERVO_2] [SERVO_3] [SERVO_4] [CHECKSUM]

Then I would write each byte to the serial port. The reason for the start byte and checksum are to let the microcontoller check for the beginning and end of a packet, and also to let it detect corrupted data. I arbitrarily use 0xAA as my start byte, and I compute the checksum by xOR'ing each payload byte. In the case above, CHECKSUM = SERVO_1 xOR SERVO_2 xOR SERVO_3 xOR SERVO_4. In the microcontroller firmware, it knows to grab 5 more bytes any time it sees 0XAA, then to xOR the 4 bytes before the last and compare it to the last byte. If the computed checksum is different than what we received, either data was corrupted or there was some sort of counting error (in either case, we ignore the packet and should recover when the next properly formatted packet is received).

You can also expand this to make it more generic on the ODROID side by adding a count so that you can handle packets of variable size...

[START_BYTE] [N_PAYLOAD_BYTES] [BYTE_0] [BYTE_1] ... [BYTE_N-1] [CHECKSUM]

Then you just make sure that your microcontroller firmware handles the packet appropriately.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby stiebel » Fri Dec 27, 2013 7:34 am

Hi murrman,
thanks for your quick response!
Yes, that is what I meant.
Then you just make sure that your microcontroller firmware handles the packet appropriately.

Do you have an example firmware to download
or a link to a howto dealing with this?
Did you write that firmware yourself or is there something "ready to use"?

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

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby murrman » Fri Dec 27, 2013 12:36 pm

stiebel wrote:Hi murrman,
thanks for your quick response!
Yes, that is what I meant.
Then you just make sure that your microcontroller firmware handles the packet appropriately.

Do you have an example firmware to download
or a link to a howto dealing with this?
Did you write that firmware yourself or is there something "ready to use"?

Greetings
Roland


Just sent you a PM. I'll add a better code example to my public repository later on for everyone else :)
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby stiebel » Fri Dec 27, 2013 3:38 pm

Thanks, it is exactly what I need!
Roland
stiebel
 
Posts: 21
Joined: Thu Oct 03, 2013 8:37 pm
languages_spoken: english, german
ODROIDs: U2, U3, XU

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby KurtE » Thu Jan 02, 2014 6:01 am

I have not been very active lately with my U2 as I have been spending more time working with a NUC, however I am starting to play again with my U2, as to prepare for the arrival of a U3, which looks like a better fit to put on one of robots.

I am now trying to decide which build/code base to start off playing with. I would like ROS on this as well as OpenCV... So should I start off again using the V2 image I still have on my hard disk or are you soon going to release a V3 image? If so which version of the OS are you starting from? Still 12.11?

Again would like to thank you for all of your contributions here!
Kurt
KurtE
 
Posts: 220
Joined: Wed Jun 19, 2013 9:39 am
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby marcwolf » Thu Jan 02, 2014 6:48 am

Will there be an updated version for the XU
Many thanks
Marc
Walk quietly through this world.
Leave nothing but smiles and pawprints
User avatar
marcwolf
 
Posts: 16
Joined: Mon Nov 04, 2013 9:06 am
Location: Brisbane, Australia
languages_spoken: english
ODROIDs: ODroid-XU, 16gb EMMC, Webcam

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby iago » Fri Jan 10, 2014 5:50 pm

murrman wrote:
iago wrote:Hey there!

I have an app for Pandaboard ES + Xtion Pro Live + OpenCV + OpenNI2 that works well (~25fps) with QQVGA (160x120) depth maps. Recently I decided to try out an Odroid-U2 using this Robotics Edition image.
Everything goes well and the app is able to work @25 fps with QVGA resolution. BUT for some reason sometimes I get the following output in my terminal :

Bus Error
Process returned 135 (0x87)

Any of you guys know something about this error??

Thanks in advance!


Is this in your own app, or the demo one that I provide?

When does the error happen (when you launch, after running for a while, etc)?


Sorry murrman, I've been on vacations.

The error happens after running my own app for a while, but I think it shouldn't be something related with the app because it's working in other enviroments.
Up to this day, I couldn't find any pattern in the appearance of this error. Any suggestions?

Thanks for your answer :)
iago
 
Posts: 13
Joined: Wed Sep 25, 2013 4:02 pm
languages_spoken: english, spanish

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby taku » Thu Jan 16, 2014 4:01 am

hello!
I downloaded and installed on emmс card, but it will not download to the console is visible following error

Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[ 6.619073] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (n ull)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed : Invalid argument
done.
[ 6.909513] Kernel panic - not syncing: Attempted to kill init!

same error on SD card, wat i can do for run OS ?
taku
 
Posts: 3
Joined: Wed Oct 16, 2013 7:14 pm
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby murrman » Sun Jan 19, 2014 10:23 am

marcwolf wrote:Will there be an updated version for the XU
Many thanks
Marc


I am working on one, but there are some issues with ROS at the moment that is keeping me from releasing one quickly. I'll update once I get it working...
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby murrman » Sun Jan 19, 2014 10:26 am

iago wrote:
murrman wrote:
iago wrote:Hey there!

I have an app for Pandaboard ES + Xtion Pro Live + OpenCV + OpenNI2 that works well (~25fps) with QQVGA (160x120) depth maps. Recently I decided to try out an Odroid-U2 using this Robotics Edition image.
Everything goes well and the app is able to work @25 fps with QVGA resolution. BUT for some reason sometimes I get the following output in my terminal :

Bus Error
Process returned 135 (0x87)

Any of you guys know something about this error??

Thanks in advance!


Is this in your own app, or the demo one that I provide?

When does the error happen (when you launch, after running for a while, etc)?


Sorry murrman, I've been on vacations.

The error happens after running my own app for a while, but I think it shouldn't be something related with the app because it's working in other enviroments.
Up to this day, I couldn't find any pattern in the appearance of this error. Any suggestions?

Thanks for your answer :)


I don't have enough information to give you any good advice. Perhaps a memory leak?
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby murrman » Sun Jan 19, 2014 10:28 am

taku wrote:hello!
I downloaded and installed on emmс card, but it will not download to the console is visible following error

Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[ 6.619073] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (n ull)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed : Invalid argument
done.
[ 6.909513] Kernel panic - not syncing: Attempted to kill init!

same error on SD card, wat i can do for run OS ?


Verify that your download was not corrupted by checking the md5sum that I provide, it sounds like you have a bad image.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby sethro244 » Mon Jan 27, 2014 12:58 pm

Hello I just got the U3 and I cant figure out how to get the new USB WIFI Module 3 that ships with it working.
I have tried realtek's driver for the RTL8188CUS but it comes up with two errors one is a missing directory.
Any help?
sethro244
 
Posts: 1
Joined: Tue Jan 14, 2014 12:40 am
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby murrman » Tue Jan 28, 2014 2:25 am

I'm not sure about that, try posting in the U3 forum since it should be a general issue with Ubuntu.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby lavahot » Tue Jan 28, 2014 7:21 am

I just enrolled in a topics 400-level class and my professor said he was going to order some RPis to run ROS if they could get it working. I'd like to convince him to buy some U3s because they kick so much more ass, but I have a few questions:
I have a few questions about this image:
On the U3, does it provide any additional support for the expansion shield?
Would you reccommend going with eMMC modules, or do class 10 SDs provide enough performance for CV?
We have some Xtions (how to pronounce? "Transition"?), does this image have built in support?
Do you have any suggestions (or heads ups) for using U3s and ROS with this image?

Thank you!

Lava
lavahot
 
Posts: 3
Joined: Fri Jul 12, 2013 4:20 am
languages_spoken: english
ODROIDs: Odroid-U2

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby murrman » Tue Jan 28, 2014 8:45 am

lavahot wrote:I just enrolled in a topics 400-level class and my professor said he was going to order some RPis to run ROS if they could get it working. I'd like to convince him to buy some U3s because they kick so much more ass, but I have a few questions:
I have a few questions about this image:
On the U3, does it provide any additional support for the expansion shield?
Would you reccommend going with eMMC modules, or do class 10 SDs provide enough performance for CV?
We have some Xtions (how to pronounce? "Transition"?), does this image have built in support?
Do you have any suggestions (or heads ups) for using U3s and ROS with this image?

Thank you!

Lava


1. I haven't used the expansion shield yet, so I'm not sure. Generally I use an external USB microcontroller for external interfacing. I give an example with source code in the February ODROID magazine :)
2. eMMCs are much faster, but for OpenCV it probably wont matter unless you are writing to disk (if your program just runs in memory and does no disk IO, it won't make a difference). eMMC will also give you a much faster boot time.
3. I'm not sure how it is pronounced, but that is what I use. With my code examples, it should run out the box.
4. This image only has ROS barebones installed, so don't expect to run every stack there is on your first boot (you may need to install / compile some stacks). Also, I do not use the ROS PCL install because of a known conflict (I think this is fixed as of ROS-Hydro, the image runs Groovy). Instead, I do my own systemwide PCL install and pass simple ROS messages instead of whole point clouds (i.e., have a node that does PCL stuff but pass only the processing result, such as coordinates, instead of the whole point cloud as a message).

I have used Raspis, they are pretty neat, but forget doing anything with an Xtion. The ODROID rules :)

Good luck with your projects.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby assadollahi » Fri Feb 07, 2014 5:02 am

This is truly awesome work and I hope that I can contribute in the future in the same way as you did.

I'm new to ROS but the more I read about it the more I know that I need to get into it. Fortunately,
I have the same setup as yu (U3 and the xtion).

So my first step is to start small and try to understand the ROS stuff, however, I'm certainly eager to
see how the primesense is doing on the U3 (i have it running on the PC within Processing, OpenNI and
SimpleOpenCV).
My feeling is that I need to get ROS RVIZ running to actually see something right? Has anybody tried to
get RVIZ running on the U3? I don't have an Ubuntu PC, so installing ROS on a PC and then doing the
Master/Host thing is currently not possible.
assadollahi
 
Posts: 2
Joined: Fri Feb 07, 2014 4:51 am
languages_spoken: english, german
ODROIDs: U3

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby stiebel » Fri Feb 07, 2014 4:10 pm

Hi assadollahi
I don't have an Ubuntu PC, so installing ROS on a PC and then doing the
Master/Host thing is currently not possible.

To be honest, installing a ubuntu on your PC is a matter of minutes.
Even if you don't want to create a partition you can use virtualbox to jet a running
Ubuntu. It realy makes things easier and it definitly is the the faster option than
every "workaround".
I "only" use the opencv stuff of the Robotics Edition and it is great to "see" things
just using an ssh -X from my ubuntu pc...

Here again: thanks to murrman for this great robotics edition!

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

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby assadollahi » Sat Feb 08, 2014 6:57 am

okay, so installed ubuntu on my pc then had to learn that 13.10 is not supported by ros right now :(
i'll install 12.4 or 12.10 tomorrow. is it okay to install ROS hydro on the pc and have the older version
on the u3? or should i also install the older version? does anybody know a good tutorial for setting up
ROS on two machines and let the PC visualise what the U3 "thinks"?
assadollahi
 
Posts: 2
Joined: Fri Feb 07, 2014 4:51 am
languages_spoken: english, german
ODROIDs: U3

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby lavahot » Sun Feb 09, 2014 6:35 pm

sethro244 wrote:Hello I just got the U3 and I cant figure out how to get the new USB WIFI Module 3 that ships with it working.
I have tried realtek's driver for the RTL8188CUS but it comes up with two errors one is a missing directory.
Any help?


Ran into the exact same problem. Have you found any solution? It looks like there's an update to the kernel in a thread from odroid in the U3 Ubuntu forum that addresses an issue with that particular Wifi card. I have tried a few other realtek wifi cards, all with the exact same results: They show up in lsusb, but network manager does not recognize them.

I have a huge Belkin Wifi dongle that seems to work just fine, but it's a bit cumbersome to fit in there. The eMMC I flashed it on is too small, so once i've flashed a bigger SD card, I'm going to try an apt-get update to see if that fixes anything. I'll also try using the new driver and kernel update script in the thread i mentioned earlier. Please let me know if you've found a solution to this problem.

Lava
lavahot
 
Posts: 3
Joined: Fri Jul 12, 2013 4:20 am
languages_spoken: english
ODROIDs: Odroid-U2

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby fboris » Thu Feb 20, 2014 11:21 pm

Lava, I tried this method you mentioned in this thread viewtopic.php?f=77&t=3621.
It worked fine for me. BTW, does anyone know how to update the roscpp_core? I use the way in ros groovy arm installation official setup. But It seems It has some conflictions there and cause my packages broken.
fboris
 
Posts: 1
Joined: Tue Feb 18, 2014 10:30 pm
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby curtisnewton » Sun Mar 02, 2014 8:51 am

TinGoose wrote:I guess pcl1.7 and ros-groovy is not a good idea. We've got a lot of troubles compiling pcl_ros package ( navigation->costmap2d depends on it). Still we managed to build it.
> I am preparing a V3 image with the new kernel based on robroyhall's 13.04 Whisper.
Are you switching to ros-hydro?


did you have these kind of errors ? i try to compile PCL 1.7 on ubuntu 13.10 (odroid XU) but it does not work....

Code: Select all
/usr/lib/gcc/arm-linux-gnueabihf/4.8/../../../arm-linux-gnueabihf/libpthread.a(ptw-fcntl.o): In function `__fcntl_nocancel':
/build/buildd/eglibc-2.17/nptl/../sysdeps/unix/sysv/linux/i386/fcntl.c:37: undefined reference to `__libc_do_syscall'
/usr/lib/gcc/arm-linux-gnueabihf/4.8/../../../arm-linux-gnueabihf/libpthread.a(ptw-fcntl.o): In function `__libc_fcntl':
/build/buildd/eglibc-2.17/nptl/../sysdeps/unix/sysv/linux/i386/fcntl.c:53: undefined reference to `__libc_do_syscall'
/build/buildd/eglibc-2.17/nptl/../sysdeps/unix/sysv/linux/i386/fcntl.c:57: undefined reference to `__libc_do_syscall'
curtisnewton
 
Posts: 57
Joined: Sat Mar 01, 2014 4:26 pm
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby zardchim » Tue Mar 25, 2014 11:44 pm

Hi murrman, I am new to X2 and am interested in getting serial communication between arduino and odroid. Could you please send me a sample code? Thank you!
zardchim
 
Posts: 3
Joined: Tue Mar 25, 2014 11:24 pm
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby odroid » Wed Mar 26, 2014 1:13 am

Refer this link for the Arduino communication.
viewtopic.php?f=52&t=2561
User avatar
odroid
Site Admin
 
Posts: 26373
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby zardchim » Wed Mar 26, 2014 10:25 am

Thx odroid!

Currently I am deciding to use odroid + arduino to do a pan-tilt tracking system.
The odroid will use openCV library for visual processing and send x,y,z (3 variables) to the arduino for controlling servos.
However in the link its arduino sending serial data to the odroid.

I guess the communication will be like what murrman has mentioned:
[START_BYTE] [SERVO_1] [SERVO_2] [SERVO_3][CHECKSUM]
Could anyone give me sample code on achieving this?
zardchim
 
Posts: 3
Joined: Tue Mar 25, 2014 11:24 pm
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby odroid » Wed Mar 26, 2014 11:29 am

You can try the Firmata to control the servo motors.
There is an example code in our Magazine Feb issue.
http://magazine.odroid.com/

Please open a new thread. Your item is out of topic!
User avatar
odroid
Site Admin
 
Posts: 26373
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby murrman » Thu Apr 03, 2014 1:36 am

There is a serial comms example for the robotics image on the project github repository...

https://github.com/cmcmurrough/odroid-development
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby RodBelaFarin » Tue Apr 15, 2014 9:55 pm

murrman wrote:
marcwolf wrote:Will there be an updated version for the XU
Many thanks
Marc


I am working on one, but there are some issues with ROS at the moment that is keeping me from releasing one quickly. I'll update once I get it working...


Have you gone on with this project? I would be very interested in this version, also a newer one for the U3. I was able to fully install ROS Hydro on XU without any problems, but did not get Xtion running. Can I maybe help you somehow with your ROS issues?
RodBelaFarin
 
Posts: 29
Joined: Tue Apr 15, 2014 9:43 pm
languages_spoken: english german
ODROIDs: U3 XU

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby gsutanto » Fri May 09, 2014 9:35 am

Hi murrman,

I have tried burning the v2 image on the eMMC, but when I plug it on my ODROID U3 and try to boot up, the monitor display shows:
"2: Digital Input
Cannot Display This Video Mode
Optimum resolution 1280X1024 60 Hz"

did I miss something?

Thanks a lot!


Regards,

Giovanni
gsutanto
 
Posts: 5
Joined: Fri May 09, 2014 1:16 am
languages_spoken: English
ODROIDs: U3, U3 I/O Shield, USB-CAM 720P

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby odroid » Fri May 09, 2014 10:02 am

4:3 aspect-ratio monitors are not compatible with this image.
What is the native resolution of your monitor?
User avatar
odroid
Site Admin
 
Posts: 26373
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby gsutanto » Sat May 10, 2014 1:55 am

Hi,

If using XUbuntu 13.10, the monitor resolution is 1920X1200
I am trying to modify the boot.scr file for this purpose...is this workable? is there any guide for this?
Thanks.
gsutanto
 
Posts: 5
Joined: Fri May 09, 2014 1:16 am
languages_spoken: English
ODROIDs: U3, U3 I/O Shield, USB-CAM 720P

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby gsutanto » Sat May 10, 2014 5:33 am

Hi,

I tried to edit the boot.scr, by following this guide: viewtopic.php?f=52&t=1104
(I plug the eMMC to my laptop, open it through my Ubuntu 12.04 LTS on my laptop, and perform the steps as stated on the link above...)

But still get the same result:
Image

What should I do?
gsutanto
 
Posts: 5
Joined: Fri May 09, 2014 1:16 am
languages_spoken: English
ODROIDs: U3, U3 I/O Shield, USB-CAM 720P

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby odroid » Sat May 10, 2014 8:36 am

You need to update the kernel.
The resolution is available in the latest kernel ARMSOC video driver.
User avatar
odroid
Site Admin
 
Posts: 26373
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby gsutanto » Sat May 10, 2014 2:34 pm

Hi odroid,

Thanks a lot for your reply...
However, since I am pretty new to ODROID, could you point out explicitly, where can I find the steps to update to the latest kernel ARMSOC video driver?

Please elaborate. Thank you very much for your time.


Best Regards,

Giovanni
gsutanto
 
Posts: 5
Joined: Fri May 09, 2014 1:16 am
languages_spoken: English
ODROIDs: U3, U3 I/O Shield, USB-CAM 720P

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby hamidReza » Mon Jun 23, 2014 5:17 pm

hi murrman
do can install "Ubuntu 12.11 Robotics Edition v2" on odroid-U3?
hamidReza
 
Posts: 4
Joined: Mon Jun 23, 2014 5:05 pm
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby odroid » Mon Jun 23, 2014 6:56 pm

hamidReza wrote:hi murrman
do can install "Ubuntu 12.11 Robotics Edition v2" on odroid-U3?


U2 software is 100% compatible with U3.
User avatar
odroid
Site Admin
 
Posts: 26373
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

install opencv-2.4.7 on ubuntu-13.10 Odroid-U3

Unread postby hamidReza » Thu Jun 26, 2014 1:53 am

hi
I want install opencv-2.4.7 or 2.4.8 on odroud-U3 with ubuntu13.10 OS, please help me.
hamidReza
 
Posts: 4
Joined: Mon Jun 23, 2014 5:05 pm
languages_spoken: english

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby funfrancis » Mon Jul 07, 2014 5:17 pm

CAn the same be used for odroid U3

murrman wrote:It's finally ready: Ubuntu 12.11 Robotics Edition 2 for ODROID-U2! This version adds OpenNI 2.2, PCL 1.7, custom code samples, and a few OpenCV packages by request (calib3D and libdc1394). I have also developed a few code samples to demonstrate data acquisition and interoperability between OpenCV, OpenNI2, and PCL (see ~/odroid-development). The code samples will be updated separately from the OS image, so check the github repository frequently.

Features:
Linaro 12.11, Kernel 3.0.75
Mali enabled (checked with glmark2-es2)
Lubuntu Desktop (stripped down)
OpenCV 2.4.6.1 with TBB
ROS Groovy (Bare Bones)
OpenNI 2.2 (Including Primesense drivers for Asus Xtion)
Point Cloud Library 1.7

Download the image here:
http://oph.mdrjr.net/murrman/linaro_ubu ... _u2.img.xz

MD5 checksum:
http://oph.mdrjr.net/murrman/linaro_ubu ... .xz.md5sum

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

Login:
Username: linaro
Password: linaro

Update History:
09/02/2013 - Initial release

Planned Updates:
Update Kernel to 3.8
Add working Microsoft Kinect OpenNI2 driver
Improve OpenNI/PCL sample code

Acknowledgements:
Base OS image provided by Robroyhall
File hosting provided by mdrjr
Installation tips provided by swkim01 and lyptik

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

screenshot_v2.jpg
funfrancis
 
Posts: 60
Joined: Wed Jun 11, 2014 12:24 pm
languages_spoken: english
ODROIDs: Odroid u3

Re: Ubuntu 12.11 Robotics Edition v2 (ROS+OpenCV+OpenNI+PCL)

Unread postby murrman » Tue Jul 08, 2014 11:56 pm

Yes, you can use it on the U3.
User avatar
murrman
 
Posts: 240
Joined: Mon Jul 08, 2013 8:53 am
Location: Texas
languages_spoken: english

PreviousNext

Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 1 guest