Go to Post Dedication to FIRST gets more challenging as life gets more complicated but the rewards are SOOOOO worth it! - Sean Schuff [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 14-03-2012, 12:21
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
[DFTF] Camera as Remote Eyes...

This is part of a series of posts called Drinking From The Firehose on getting Dr Joe back up to speed on All Things FIRST.



Today's topic:
Using the Camera to provide a remote set of eyes...

Using the camera to auto aim is just not in the cards for Schodinger's Cat this year (read [DFTF] The Classic Blunder... to learn that our robot, The Rook, is lucky to have a ball handler at all).

BUT... ...we may be able to manage mounting the kit camera on The Rook's beefy arm to
  • help us see if we are lined up with the basket or
  • see if a ball is lurking twixted The Rook and the dark side of a bridge or
  • get a close up view of the sweat beading up on the foreheads of our opponents ;-)
  • ...
Frankly, I am scared to death to do it. Not that it wouldn't be helpful but that it will screw something else up in the process (Why won't our robot respond Scottie? It's that video feed, Capt., it's eating our bandwidth like I eat haggis on Burns Night ... ;-)

So... ...tell me all. Can we safely use the Kit Camera as a remote set of eyes for our drivers?

And be quick about it. We've got BU in 7 days.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
Reply With Quote
  #2   Spotlight this post!  
Unread 14-03-2012, 12:33
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: [DFTF] Camera as Remote Eyes...

Quote:
Originally Posted by Joe Johnson View Post
So... ...tell me all. Can we safely use the Kit Camera as a remote set of eyes for our drivers?
Yes. Just configure the camera for your team's address, mount it (keep it electrically isolated from the robot frame) give it 5V power, and plug its network connection in to the DAP. It's that easy.
Reply With Quote
  #3   Spotlight this post!  
Unread 14-03-2012, 12:35
IndySam's Avatar
IndySam IndySam is offline
Registered User
FRC #0829 (Digital Goats)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Indy
Posts: 3,362
IndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond repute
Re: [DFTF] Camera as Remote Eyes...

We started the season working on auto aiming for the camera and got it to work well but in the two weeks of practice we have found that our driver can aim using the camera much faster and just as accurately as the auto function.

We commented out all of the auto aiming code.

I have spoken with another team with much more programming resources than ours and they have discovered the same thing.
__________________
"Champions are champions not because they do anything extraordinary but because they do the ordinary things better than anyone else." —Chuck Knoll


2015 Indianapolis District Winner
2014 Boilermaker Regional Industrial Design Award
2013 Smoky Mountain Regional Industrial Design Award
2012 Boilermaker Engineering Excellence Award
2010 Boilermaker Rockwell Innovation in Control Award.
2009 Buckeye J&J Gracious Professionalism Award
2009 Boilermaker J&J Gracious Professionalism Award
2008 Boilermaker J&J Gracious Professionalism Award
2007 St Louis Regional Winners
Reply With Quote
  #4   Spotlight this post!  
Unread 14-03-2012, 12:35
Andy Brockway Andy Brockway is offline
Engineer
FRC #0716 (Who'sCTEKS)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Falls Village, CT
Posts: 459
Andy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond repute
Re: [DFTF] Camera as Remote Eyes...

At GSR there were several teams that switched from an aiming camera to a "second set of eyes" camera. We plan on adding one for Championship.
__________________
Andy Brockway
Team 716, The Who'sCTEKS
Reply With Quote
  #5   Spotlight this post!  
Unread 14-03-2012, 13:43
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: [DFTF] Camera as Remote Eyes...

Quote:
Originally Posted by Alan Anderson View Post
Yes. Just configure the camera for your team's address, mount it (keep it electrically isolated from the robot frame) give it 5V power, and plug its network connection in to the DAP. It's that easy.
Hit the nail on the head. We are using 2 camera's, one for alignment for our shooter and another for our ball intake/bridge pusher. We power both off the 5V Wago supply using a terminal strip.

We have had no problems with lag/dropped packets or any other communication issues, I believe our video resolution on each camera is set to 640x480 in the camera f/w. The default dashboard works fine for 1 camera. Since we use 2 camera's we modified our dashboard (along with some other info). Here is a link to our Google Code repository, which includes the Dashboard project
>2012 Game Robot>Program>Dashboard
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 14-03-2012, 13:52
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: 8,590
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: [DFTF] Camera as Remote Eyes...

Last year, our classmate couldn't display images at 320x240 30fps without pegging the classmate processor and causing occasional control lag. We changed it to 10fps and it worked well. I saw several people saying they did the same thing this year.

If you are using another driver station computer, that shouldn't be an issue.

Last edited by Joe Ross : 14-03-2012 at 14:37.
Reply With Quote
  #7   Spotlight this post!  
Unread 14-03-2012, 13:58
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: [DFTF] Camera as Remote Eyes...

Quote:
Originally Posted by Joe Ross View Post
Last year, our classmate couldn't display images at 30fps without pegging the classmate processor and causing occasional control lag. We changed it to 10fps and it worked well. I saw several people saying they did the same thing this year.

If you are using another driver station computer, that shouldn't be an issue.
Right, same here, forgot to mention it. We are using a newer laptop with 4 GB RAM, 17"? screen and running Windows 7. We needed the screen size for both cameras, plus the Kinect software was super slow running on our original Classmate.
__________________
Reply With Quote
  #8   Spotlight this post!  
Unread 14-03-2012, 14:01
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: [DFTF] Camera as Remote Eyes...

If your concerned about bandwidth, you can fairly easily reduce the framerate and resolution of the camera.

We're using a netbook about the equivalent to the classmate and it works fine at 320x240 10fps (IIRC).

Regarding the auto aim, I was amazed to see how well our drivers were able to line up manually (we had some issues with our wifi bridge yesterday, so thats all we had). For our autoaim, I included a safeguard that prevented the operator from firing until we had a lock OR until he pressed a second button (as an override). We still have all our camera code in, but it's barely been used.
Reply With Quote
  #9   Spotlight this post!  
Unread 15-03-2012, 12:48
kws4000's Avatar
kws4000 kws4000 is offline
Team Mentor - Programming
AKA: Krazy Karl
FRC #2405 (Divided by Zero)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Fruitport, MI
Posts: 164
kws4000 is a jewel in the roughkws4000 is a jewel in the roughkws4000 is a jewel in the roughkws4000 is a jewel in the rough
Re: [DFTF] Camera as Remote Eyes...

15 FPS is good @ 320*240 on the wee DS, really no lag whatsoever. Kinect is a diff story/problem/solution that doesn't belong here.

Just verify which camera you are using, the old 206 needs some monkeying w/ Dashboard AND Robot code that is automatically configured for the newer 1011.

As for mounting, make sure it is on something that is strong but gives just a little. IE 2405 (that's us!) good piece of thick plexi (not thin lexan) running across front of our boxy frame, with a tapped hole in the middle for the screw on the back of the camera. Screw it on, connect wires, check lens focus on it. If neccessary, tape down the spinny thing if the vibrations from the shoooter are so violent that the drivers are "flying blind" after Auto.
__________________
Mentoring:
1) Educating students on the ability to learn and have fun at the same time.
2) Giving back to those who made you who you are.

2009-2011 Student 2405 Electrical/Programming & Asst. Captain
2012-???? Mentor 2405 Programming/Jack-of-all-Trades
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:54.

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