Go to Post The game starts, we learn, the game changes, we learn some more, the game changes again, we learn even more . . . - Bill Moore [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-10-2012, 20:21
inkspell4's Avatar
inkspell4 inkspell4 is offline
Registered User
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Maryland
Posts: 326
inkspell4 will become famous soon enough
Image Processing

Would it be a good idea to use an arduino to do image processing on the robot to decrease the load on the crio and would it be legal

How would this be done i don't know of any shields that can access ip Camara images or even process them
__________________
Chesapeake Regional : 2013, 2012, 2011
Rookie Year: 2011
2013 RoboRaptors Team 3650 Programming Team Captain
Team Website : http://www.roboraptorsfrcteam3650.com/index.html
_____________________________________________
Reply With Quote
  #2   Spotlight this post!  
Unread 07-10-2012, 22:06
Rainydaymaker's Avatar
Rainydaymaker Rainydaymaker is offline
Registered User
AKA: Jim
FRC #1983 (Skunk Works)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2009
Location: Seattle WA
Posts: 28
Rainydaymaker is on a distinguished road
Re: Image Processing

The CMU Cam4 is an arduino shield from SparkFun that has its own image processing chip, a propeller. It can also send data directly to the cRio. https://www.sparkfun.com/products/10032?
__________________
Jim Smith
FLL Coach
FTC Coach 3721
FRC Mentor 1983
Reply With Quote
  #3   Spotlight this post!  
Unread 07-10-2012, 22:34
inkspell4's Avatar
inkspell4 inkspell4 is offline
Registered User
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Maryland
Posts: 326
inkspell4 will become famous soon enough
Don't get me wrong i love sparkfun but I'm looking for something that would interface with the axis camera that we already use
__________________
Chesapeake Regional : 2013, 2012, 2011
Rookie Year: 2011
2013 RoboRaptors Team 3650 Programming Team Captain
Team Website : http://www.roboraptorsfrcteam3650.com/index.html
_____________________________________________
Reply With Quote
  #4   Spotlight this post!  
Unread 07-10-2012, 23:09
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Image Processing

As a rough comparison, the cRIO's PPC can do about 780 MIPs where the ints are four bytes big. The Arduino can do 16MIPs where the ints are one byte. So the Arduino is capable of many things, but unless you get one heck of a shield, this isn't contributing much CPU. Similarly, with just a few K of memory, it would be difficult to impossible to even perform the JPEG decoding. Even the Propellor Shield that was linked to as the CMUCam only mentions pretty basic image processing.

Teams have had some success with things like Pandas, Beagle's, and Beagle Bones. You can also send the images to the DS laptop and do the processing in the dashboard application and send the results back. The Atom in the lowest end laptop is around 3000MIPs, by the way.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 07-10-2012, 23:22
inkspell4's Avatar
inkspell4 inkspell4 is offline
Registered User
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Maryland
Posts: 326
inkspell4 will become famous soon enough
How would you have it send data back and forth from the dashboard and how much would it slow down the connection
__________________
Chesapeake Regional : 2013, 2012, 2011
Rookie Year: 2011
2013 RoboRaptors Team 3650 Programming Team Captain
Team Website : http://www.roboraptorsfrcteam3650.com/index.html
_____________________________________________
Reply With Quote
  #6   Spotlight this post!  
Unread 08-10-2012, 08:29
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Image Processing

There are a couple well supported ways to get the images to the dashboard. The initial one was necessary because there was no switch on the robot. This meant that the cRIO asked the camera for the images on one enet port, and then duplicated the jpeg out the other port to the dashboard.

For a few years now, the bridge has included a switch. This means that the dashboard and camera can directly communicate. This is usually done by having the dashboard request an mjpg stream from the camera. The camera can serve up to five clients, so it is actually possible to have images go to the cRIO and dashboard independently.

To get processed results back to the robot from the dashboard is not quite as automatic. One option is to use the Network Tables -- the underlying publish-and-subscribe protocol that SmartDashboard uses. This was relatively new last year, but is being enhanced and is what I'd recommend. It is also possible to do your own lower level protocol over TCP or UDP. Network tables operates over TCP by the way.

As for the speed of the connection, the robots use N-speed wifi, a high speed communication option. It will typically take just a few milliseconds for the information to be sent, and in most measurements we've seen, the robots are using less than 25% of the bandwidth available.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 08-10-2012, 11:45
dtengineering's Avatar
dtengineering dtengineering is offline
Teaching Teachers to Teach Tech
AKA: Jason Brett
no team (British Columbia FRC teams)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Vancouver, BC
Posts: 1,829
dtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond repute
Re: Image Processing

Something like the Raspberry Pi, or several other single board computers might be a solution. Given the low cost of laptops, tablets, and even smartphones, you could probably rig up a way to run them legally... you'd have to pull their batteries... even a little lithium cell on the motherboard... which would be a hassle as you are not normally allowed an electrical power source other than the main battery.

I'm not saying I know what the software for this solution would look like, but I do know that I've seen some pretty impressive solutions.

Jason
Reply With Quote
  #8   Spotlight this post!  
Unread 08-10-2012, 12:55
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Image Processing

Quote:
Originally Posted by dtengineering View Post
Something like the Raspberry Pi, or several other single board computers might be a solution.... you'd have to pull their batteries... even a little lithium cell on the motherboard... which would be a hassle as you are not normally allowed an electrical power source other than the main battery.
The 2012 robot rules were slightly more permissive than in previous years. <R36>: "...Batteries integral to and part of a COTS computing device are also permitted (i.e. laptop batteries), provided they’re only used to power the COTS computing device."
Reply With Quote
  #9   Spotlight this post!  
Unread 08-10-2012, 16:40
inkspell4's Avatar
inkspell4 inkspell4 is offline
Registered User
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Maryland
Posts: 326
inkspell4 will become famous soon enough
Ive never used a raspberry pi but how similar is it to an arduino and im still pondering the idea of processing it on the laptop with the driver station

What were the rules last year for using an alternate computer as the driver station
__________________
Chesapeake Regional : 2013, 2012, 2011
Rookie Year: 2011
2013 RoboRaptors Team 3650 Programming Team Captain
Team Website : http://www.roboraptorsfrcteam3650.com/index.html
_____________________________________________
Reply With Quote
  #10   Spotlight this post!  
Unread 08-10-2012, 17:04
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Image Processing

The Raspberry Pi is a bit like a Beagle or Panda with extra video, but for the price of an Arduino. It doesn't have that much of a general CPU, but has very impressive video and audio abilities. I believe the Wikipedia article referred to it as combining the video of an XBox1 with the processing power of a Pentium II.

Greg McKaskle
Reply With Quote
  #11   Spotlight this post!  
Unread 30-10-2012, 18:45
inkspell4's Avatar
inkspell4 inkspell4 is offline
Registered User
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Maryland
Posts: 326
inkspell4 will become famous soon enough
Where can u buy a raspberry pi or panda they all seem to be sold out or bot sold anywhere
__________________
Chesapeake Regional : 2013, 2012, 2011
Rookie Year: 2011
2013 RoboRaptors Team 3650 Programming Team Captain
Team Website : http://www.roboraptorsfrcteam3650.com/index.html
_____________________________________________
Reply With Quote
Reply


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 17:37.

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