Go to Post One wouldn't want to keep the red herring in hand, that gets kind of stinky. - GaryVoshol [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 10-03-2013, 13:55
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,350
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: PCDuino!! Talk about potential

I was visiting my son in Denver this week, so I made a run to SparkFun in Boulder.
I now own a PCDuino. Time for the learning to begin!

I know next to zero about programming in Ubuntu-Linux. I have an end goal of using this as a out board video processor to identify and track vision targets. Then to make the position information available to the cRio via I2c, or Serial, or Ethernet.

I guess the first thing I need to do is get a basic understanding of coding in Linux. Next I will need to figure out how to interface a USB webcam. Once I get that working, I will need to work on image processing, then lastly, how to communicate target info to the cRio.

I know there are plenty of white papers and links here on CD and I plan on taking advantage of those resources. But, the first piece of help I need is a basic primer in working within Ubuntu-Linux (or Lbunutu on the PCDuino). Then I need a bit of help interfacing the camera.

So, where do I begin?
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #17   Spotlight this post!  
Unread 10-03-2013, 16:43
protoserge's Avatar
protoserge protoserge is offline
CAD, machining, circuits, fun!
AKA: Some call me... Tim?
FRC #0365 (MOE) & former 836 Mentor)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2002
Location: Wilmington, DE
Posts: 745
protoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond repute
Re: PCDuino!! Talk about potential

You're doing almost identical work to our team

I know they got a single core ARM working (the Mk802 Android PC) with the Kinect, but wanted to harness the power of the Mk808 dual core for more processing power. The Ubuntu install on the Mk808 has had a couple hangups that need to be corrected before we can explore this.
  #18   Spotlight this post!  
Unread 10-03-2013, 18:05
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: PCDuino!! Talk about potential

A quick update - I've got Lubuntu running on my dual core MK802IIIs (quad core graphics, might help with vision). It runs normally, with minor networking idiosyncrasies.
  #19   Spotlight this post!  
Unread 15-03-2013, 19:38
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,350
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: PCDuino!! Talk about potential

I'm working on learning to function in the Linux/Ubuntu environment. Books are coming!

One thing that appears to be an issue right now is that the Lubuntu version that came with the PCDuino does not contain libUVC.
Being a total noob, I have no clue, yet, how to address this.

Any clue how I would add this module/library to Lubuntu so that the board will recognize and work with a webcam?
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #20   Spotlight this post!  
Unread 17-03-2013, 00:57
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: PCDuino!! Talk about potential

Quote:
Originally Posted by billbo911 View Post
I'm working on learning to function in the Linux/Ubuntu environment. Books are coming!

One thing that appears to be an issue right now is that the Lubuntu version that came with the PCDuino does not contain libUVC.
Being a total noob, I have no clue, yet, how to address this.

Any clue how I would add this module/library to Lubuntu so that the board will recognize and work with a webcam?
UVC is and interface for USB webcams from vendors like Logitech among others. You can install the package using "sudo apt-get install luvcview". That's a video capture framework. It may not be everything you need, but is't a start. You can likely find more info at this link:

http://www.ubuntu.com/download/arm

Lubuntu is derived from this distro.

HTH,

Mike
  #21   Spotlight this post!  
Unread 02-04-2013, 11:30
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,350
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: PCDuino!! Talk about potential

So, a little progress to report.

Considering so much of this is very new to me: Linux, Ubuntu (Lubuntu), OpenCV, Python etc., I am making progress.

The first thing I need to do is figure out how to run this system entirely from a bootable uSD. The storage onboard just isn't quite enough to do everything I need.

I have the board running with UVC and can validate the USB Video Camera is working.
I have installed OpenCV, but not the latest version. Hopefully those libraries will be available soon. I could always build it myself from source, but I really am not comfortable, let alone knowledgeable, with that process. Again, I need more storage space to do this properly.

I need to install a Python IDE, but I am already at 82% used space onboard, so I am really tight on space for additional software. Again, see the "first thing I need to do".

There are lots of examples available to see how others are doing this on RPi, BeagleBones, MK802/MK808 etc. But without having access to the tools and knowledge I need yet, I am struggling a bit. Any advice is welcome!!!
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #22   Spotlight this post!  
Unread 18-04-2013, 00:47
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,350
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: PCDuino!! Talk about potential

OK, now that a fully uSD bootable image is available, I have the board acquireing images and processing them at close to 20 FPS. I can track a rectangular target of any color, once I have calibrated for that color. It will generated (X , Y) coordinates for the four corners as well as the center of mass of the object tracked. Thank you Team 3847 for providing access to your code so I could learn the process.

At this point, I need to figure out how to send this tracking info to the cRio. Network Tables is one option, but I'm sure there are other ways. This too will be new to me, so any help is appreciated.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #23   Spotlight this post!  
Unread 28-04-2013, 20:05
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,350
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: PCDuino!! Talk about potential

Got it!!!

Today I figured out the last piece of the puzzle.
I'm currently getting approx. 20fps of target tracking data. I can send it over to Labview at the same rate. I have not tested this on the cRio yet, but I see no reason to think the same vi running on the cRio would behave differently than on my PC.

The four corner coordinates of the target are merged into a 24 character string and passed to LabView. From there, what you choose to do with it is up to you.

Thanks to FIRST Team 3847 Spectrum for their guidance and advice during this process.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #24   Spotlight this post!  
Unread 28-04-2013, 20:34
fb39ca4 fb39ca4 is offline
Registered User
FRC #1899
 
Join Date: Jan 2012
Location: Bellevue, WA
Posts: 195
fb39ca4 is a name known to allfb39ca4 is a name known to allfb39ca4 is a name known to allfb39ca4 is a name known to allfb39ca4 is a name known to allfb39ca4 is a name known to all
Re: PCDuino!! Talk about potential

Also check out the Udoo. It has a quad core ARM CPU and is also Arduino compatible, although it is larger and more expensive.

http://www.udoo.org/features/
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:27.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi