Go to Post They see us come into school looking like zombies, and they know that some people start smelling like chain lube and such...but for the most part, they don't realize that for a lot of us, there is a deep commitment to our team that we do a very large amount of work for that team. - JakeGallagher [more]
Home
Go Back   Chief Delphi > Technical > Programming
Team 51   CD-Events   CD-Media   CD-Swap   CD-Spy   FRC-Spy   Unsung FIRST Heroes   WFA
portal register members calendar search Today's Posts Mark Forums Read FAQ rules
VEXpro
The Chief Delphi Forums are sponsored by Innovation First International, Inc.
ADVERTISEMENT

 
View Poll Results: What did you use for Vision Processing
Driver Station 28 60.87%
Laptop/Netbook on Robot 3 6.52%
Other 2 4.35%
Did not use/cRIO 13 28.26%
Voters: 46. You may not vote on this poll

Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-23-2012, 09:20 AM
Caboose's Avatar
Caboose Caboose is online now
Programmer - C, C++, C#, Java
AKA: James Parks
FRC #0900 (Team Infinity)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: NC
Posts: 13
Caboose is an unknown quantity at this point
Talking Who used Driver Station for Vision?

I am just wondering who was using their Driver Station or an non cRIO computer for Vision Processing in Rebound Rumble, and what are you going to do next year with the new field data limits.

On a side note, because of the $400 limit of parts on the robot and the new allowance of laptops allowed on robots, would people like a price raise limited for laptops/alt. computing devices that could go on the robot?
__________________

Last edited by Caboose : 08-23-2012 at 05:07 PM. Reason: 42
Reply With Quote
  #2   Spotlight this post!  
Unread 08-23-2012, 10:27 AM
AGPapa's Avatar
AGPapa AGPapa is offline
Registered User
AKA: Antonio Papa
FRC #2590 (Nemesis)
Team Role: Programmer
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Robbinsville, NJ
Posts: 46
AGPapa has a spectacular aura aboutAGPapa has a spectacular aura about
Re: Who used Driver Station for Vision?

Where did you hear about new field data limits?
Reply With Quote
  #3   Spotlight this post!  
Unread 08-23-2012, 10:38 AM
Caboose's Avatar
Caboose Caboose is online now
Programmer - C, C++, C#, Java
AKA: James Parks
FRC #0900 (Team Infinity)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: NC
Posts: 13
Caboose is an unknown quantity at this point
Exclamation Re: Who used Driver Station for Vision?

Quote:
Originally Posted by AGPapa View Post
Where did you hear about new field data limits?
Page 23 of the Einstein Investigation Report: <http://www3.usfirst.org/node/2426>
Quote:
Planned changes to the wireless system to increase robustness were confirmed by the feedback from the wireless
experts consulted as part of the investigation. These items do not directly address failures that occurred on
Einstein but aim to make the wireless network configuration more robust:
...
Quality of Service (QoS) – With a fixed bandwidth cap in place, it becomes critical to prioritize robot
control packets over other types of data such as video. QoS can be used to implement this prioritization
so that robot control packets will continue to flow even if a team exceeds the bandwidth cap with video
or other data.
Ideally each of the 6 teams on the field will get ~50Mbps, most of which will go to FMS/Robot Control data.
__________________

Last edited by Caboose : 08-23-2012 at 10:41 AM. Reason: 42
Reply With Quote
  #4   Spotlight this post!  
Unread 08-23-2012, 12:56 PM
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Compulsive frobnicator
FRC #1708 (AMP'd Robotics)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Pittsburgh
Posts: 447
RyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant future
Re: Who used Driver Station for Vision?

Quote:
Originally Posted by Caboose View Post
Ideally each of the 6 teams on the field will get ~50Mbps, most of which will go to FMS/Robot Control data.
I'm pretty sure the robot control data doesn't take more than about 1KB per update, at around 50 Hz. This gives you 400 Kbps for robot control data.

To transmit a single frame of video with 320x240 resolution and 24bit color is 320*240*24 = 1.8 Mb. Note that the Axis cameras use MJPEG compression as well, so this is a gross overestimate. For targeting purposes, given the network lag that's going to be inherit in the system, you shouldn't need more than 10 fps. Maybe 15 if you want smoother-looking video for display to your drivers.

That's still only 30 Mbps (even with uncompressed video).
__________________
--Ryan

FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-, Mentor
Reply With Quote
  #5   Spotlight this post!  
Unread 08-23-2012, 01:26 PM
Caboose's Avatar
Caboose Caboose is online now
Programmer - C, C++, C#, Java
AKA: James Parks
FRC #0900 (Team Infinity)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: NC
Posts: 13
Caboose is an unknown quantity at this point
Re: Who used Driver Station for Vision?

Quote:
Originally Posted by RyanCahoon View Post
I'm pretty sure the robot control data doesn't take more than about 1KB per update, at around 50 Hz. This gives you 400 Kbps for robot control data.

To transmit a single frame of video with 320x240 resolution and 24bit color is 320*240*24 = 1.8 Mb. Note that the Axis cameras use MJPEG compression as well, so this is a gross overestimate. For targeting purposes, given the network lag that's going to be inherit in the system, you shouldn't need more than 10 fps. Maybe 15 if you want smoother-looking video for display to your drivers.

That's still only 30 Mbps (even with uncompressed video).
Note the word Ideally, 300 Mbps it the theoretical bandwidth for 802.11n with the FMS router and robot in channel bonding mode (this doesn't happen as far as I know), but can drop to under 130 Mbps which would then give each team ~21Mbps or under. Also to do nice detailed image processing my team used 640x480 resolution on two cameras in stereo, pushing us to ~14 Megabits(7Mb*2) for both images at ~15FPS, excluding network overhead, this according to the FMS people in Raleigh was getting close to taxing the FMS when we were the only team using vision on the field during a match.
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 08-23-2012, 01:29 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 6,597
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Who used Driver Station for Vision?

Here's is what the Q/A said for last year:

Quote:
There are currently no bandwidth limits in place in the field network. In theory, each team has 50Mbits/second (300Mbits/6) available, but that’s not actually realistic. In reality, each team is likely to have ~10-12Mbits/s available. This rate will vary depending on the location of the radio on the Robot and the amount of wireless traffic present in the venue at 5GHz. While this information may help give teams an idea of what to expect, note that there is no guaranteed level of bandwidth on the playing field.
Reply With Quote
  #7   Spotlight this post!  
Unread 08-23-2012, 02:54 PM
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Compulsive frobnicator
FRC #1708 (AMP'd Robotics)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Pittsburgh
Posts: 447
RyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant future
Re: Who used Driver Station for Vision?

Quote:
Originally Posted by Caboose View Post
Note the word Ideally, 300 Mbps it the theoretical bandwidth for 802.11n with the FMS router and robot in channel bonding mode (this doesn't happen as far as I know), but can drop to under 130 Mbps which would then give each team ~21Mbps or under.
Acknowledged - just pointing out that the needed bandwidth is fairly close to the actually available bandwidth, not many orders of magnitude difference. I'm actually hoping they can implement a robust QOS system; it will make our jobs much easier instead of having to implement throttling ourselves.

Quote:
Originally Posted by Caboose View Post
Also to do nice detailed image processing my team used 640x480 resolution on two cameras in stereo, pushing us to ~14 Megabits(7Mb*2) for both images at ~15FPS
Did you do any testing to compare your accuracy against a lower resolution?
__________________
--Ryan

FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-, Mentor
Reply With Quote
  #8   Spotlight this post!  
Unread 08-23-2012, 03:06 PM
R.C.'s Avatar
R.C. R.C. is offline
Ramping Up for the 2013 Season!
AKA: Owner, WestCoast Products & Design LLC
FRC #1323 (MadTown Robotics)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Madera, CA
Posts: 1,761
R.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond repute
Send a message via AIM to R.C.
Re: Who used Driver Station for Vision?

Quote:
Originally Posted by Caboose View Post
I am just wondering who was using their Driver Station or an non cRIO computer for Vision Processing in Rebound Rumble, and what are you going to do next year with the new field data limits.
341 used off board vision using Java/SmartDashboard. It worked really well for them. One of the top 5 teams in FRC this year. We used their code as well, it made a huge difference for us.

They were kind enough to put their code up on Delphi, so take a look if your interested.

-RC
Reply With Quote
  #9   Spotlight this post!  
Unread 08-23-2012, 05:02 PM
Caboose's Avatar
Caboose Caboose is online now
Programmer - C, C++, C#, Java
AKA: James Parks
FRC #0900 (Team Infinity)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: NC
Posts: 13
Caboose is an unknown quantity at this point
Re: Who used Driver Station for Vision?

Quote:
Originally Posted by RyanCahoon View Post
Did you do any testing to compare your accuracy against a lower resolution?
Yes, we tested on lower resolution. Refer to my teams white paper for examples of a 640x480 image and how far apart our cameras were. The reason for the large images is for calculations, low resolution images give larger errors in our distance and angle calculations due to the pixels.


*Edited top Question*
__________________

Last edited by Caboose : 08-23-2012 at 05:07 PM. Reason: 42
Reply With Quote
  #10   Spotlight this post!  
Unread 08-23-2012, 05:17 PM
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Compulsive frobnicator
FRC #1708 (AMP'd Robotics)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Pittsburgh
Posts: 447
RyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant future
Re: Who used Driver Station for Vision?

Quote:
Originally Posted by Caboose View Post
Yes, we tested on lower resolution. [...] The reason for the large images is for calculations, low resolution images give larger errors in our distance and angle calculations due to the pixels.
That's what I had assumed, but I'm curious if you noted how much larger the errors were. I'd also be interested in the errors of the stereo distance measurement vs the perspective distance measurement as a function of distance, if you have them.
__________________
--Ryan

FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-, Mentor
Reply With Quote
  #11   Spotlight this post!  
Unread 08-23-2012, 06:29 PM
F22Rapture's Avatar
F22Rapture F22Rapture is offline
Team Captain, Lead Programmer
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 471
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Who used Driver Station for Vision?

Quote:
Originally Posted by Joe Ross View Post
Here's is what the Q/A said for last year:
Due to the events on Einstein some of the rules regarding networks have changed. One of those is that there's going to be a bandwidth limit for each robot and QoS to ensure the driver commands can make it through with as little latency as possible.
Reply With Quote
  #12   Spotlight this post!  
Unread 08-23-2012, 07:43 PM
apalrd's Avatar
apalrd apalrd is offline
Embedded Programmer
AKA: Andrew Palardy (Most people call me Palardy)
FRC #0033 (Killer Bees)
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,152
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Who used Driver Station for Vision?

We ran our vision on Dashboard.

I set the fps limit to 20fps. Due to the design of the control algorithm we used, more frames is better, so we try for 20. We get images at 320x240 (we determined this was the smallest size that achieved adequate resolution with the fish-eye lens we used).

If we encounter any bandwidth limit in the future, we'll either run smaller or slower. Running at 320x240 at 10fps is still far better than what the cRio on its own is capable of (I don't think we could get more than 6fps at any resolution, given the amount of processor utilized by non-vision code), and any solution that is weight neutral on the robot the solution we will almost always choose.
__________________
Kettering University - Electrical Engineering
Kettering University SAE Teams
Chrysler Powertrain - Controls and Calibration

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote
  #13   Spotlight this post!  
Unread 08-24-2012, 04:12 PM
Caboose's Avatar
Caboose Caboose is online now
Programmer - C, C++, C#, Java
AKA: James Parks
FRC #0900 (Team Infinity)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: NC
Posts: 13
Caboose is an unknown quantity at this point
Lightbulb Re: Who used Driver Station for Vision?

Quote:
Originally Posted by apalrd View Post
If we encounter any bandwidth limit in the future, we'll either run smaller or slower.
I would think a better plan would be to have the vision processing calculated on the robot, use of cheaper and better USB cameras with low image capture lag, with a light and powerful laptop and send relevant data to the Driver Station/Robot. But alas there is a dreaded $400 limit to ALL parts, if only laptops that would go on the robot could be a little more expensive the FMS would not have a need to worry about large images clogging the field network...
__________________
Reply With Quote
  #14   Spotlight this post!  
Unread 08-24-2012, 04:27 PM
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Compulsive frobnicator
FRC #1708 (AMP'd Robotics)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Pittsburgh
Posts: 447
RyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant futureRyanCahoon has a brilliant future
Re: Who used Driver Station for Vision?

If you're worried about the price limit and weight, you shouldn't even be looking at laptops. Build your own Mini-ITX board. You can buy/bill the components separately and to your needed specifications, and that way you don't have to carry around the screen. There are power supplies on that site designed for car computers that are tolerant to voltage drop-out as well, so you can even power the computer off of the robot's battery, saving you more weight.
__________________
--Ryan

FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-, Mentor
Reply With Quote
  #15   Spotlight this post!  
Unread 08-24-2012, 05:45 PM
cbale2000's Avatar
cbale2000 cbale2000 is offline
Registered User
AKA: Chris Bale
FRC #0703 (Phoenix)
Team Role: Leadership
 
Join Date: Apr 2006
Rookie Year: 2004
Location: Saginaw, MI
Posts: 305
cbale2000 is a splendid one to beholdcbale2000 is a splendid one to beholdcbale2000 is a splendid one to beholdcbale2000 is a splendid one to beholdcbale2000 is a splendid one to beholdcbale2000 is a splendid one to beholdcbale2000 is a splendid one to behold
Send a message via MSN to cbale2000
Re: Who used Driver Station for Vision?

For me the bigger question is, why doesn't FIRST just ditch the cRio and go with laptop controlled robots?

All it would take is a USB motor controller + I/O board (and since we already have FIRST-specific electronics that ship with the cRio, I don't see this as being a huge issue) and almost any laptop and you have a control system that can be easily upgraded/updated, has an independent backup battery (no worries about power loss on your controller), can be programmed in virtually any language, can run vision processing without eating network bandwidth, and, depending on what you get, can be cheaper and have more features than the cRio.
__________________

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 07:25 AM.

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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © Delphi and Pontiac Central High School