Go to Post All I want for Christmas is a better game hint, a better game hint, a better game hint... - Schnabel [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 16-10-2011, 15:28
Andrew Lawrence
 
Posts: n/a
Using cameras

What applications have teams used before for the camera in the KoP? I don't mean like vision targeting, or tracking. More like the camera is placed in a specific part of the robot so teams can get a better view of something.

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 16-10-2011, 15:32
Grim Tuesday's Avatar
Grim Tuesday Grim Tuesday is offline
Registered User
AKA: Simon Bohn
FRC #0639 (Code Red)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Baltimore MD (JHU)
Posts: 1,607
Grim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond repute
Re: Using cameras

I think I get what you're asking...

Last year, we considered (but did not) putting the camera on the tray for our minibot, to make deploying easier, and putting it on our lift, to make hanging tubes easier. In the end, we decided to put it in the middle of the robot, on a servo powered turntabble.

When we got to competition, for whatever reason, the camera crashed our whole control system, so we tore it off.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-10-2011, 16:28
Garret's Avatar
Garret Garret is offline
Standing on the Shoulders of Giants
AKA: Garret Smalley
FRC #0691 (Hart District Robotics)
Team Role: Mentor
 
Join Date: Dec 2009
Rookie Year: 2008
Location: Goleta, CA (UCSB)
Posts: 203
Garret has a reputation beyond reputeGarret has a reputation beyond reputeGarret has a reputation beyond reputeGarret has a reputation beyond reputeGarret has a reputation beyond reputeGarret has a reputation beyond reputeGarret has a reputation beyond reputeGarret has a reputation beyond reputeGarret has a reputation beyond reputeGarret has a reputation beyond reputeGarret has a reputation beyond repute
Re: Using cameras

Last year we had our camera set up so that it would be facing forward during the match to assist with grabbing tubes and scoring, and during the final part we would turn it around and use it to assist with scoring the minibot. during the match we could control the camera's direction with a separate joystick if we so desired.
__________________
7 Years of FRC
"You students are at the top of the mountain, at the pinnacle of success, and what is it that you do?
You become the future guides to help others climb the mountain."
Reply With Quote
  #4   Spotlight this post!  
Unread 17-10-2011, 18:48
TofuRama TofuRama is offline
01000110 01010010 01000011
AKA: Matt
FRC #2484 (Team Implosion)
Team Role: Programmer
 
Join Date: Apr 2011
Rookie Year: 2009
Location: Woods Cross Utah
Posts: 17
TofuRama is an unknown quantity at this point
Re: Using cameras

To get the images from the camera to your driver station you'll need to code it in. For C++ and I believe Java you'll want to look into the PCVideoServer class in the WPI Library. I don't know how you'd do it for LabView though.

Also, be prepared for some lag. When our team did used it two years ago we had about 1-2 seconds of lag. It might be better this year but I wouldn't expect it to be lag-free.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-10-2011, 19:07
Mk.32's Avatar
Mk.32 Mk.32 is offline
Registered User
AKA: Mark
FRC #2485 (W.A.R. Lords)
Team Role: Engineer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: San Diego
Posts: 770
Mk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud of
Re: Using cameras

For logomotion we used the camera aimed in front of us to assist with seeing in picking up tubes.
For the lag issue, on the netbook there was 1-3 sec of lag, however when we used a modern laptop (Intel i5) the lag went away...
__________________
Engineering mentor: Team 2485: WARLords 2013-

Team President: Team 3647 2010-2013
Reply With Quote
  #6   Spotlight this post!  
Unread 17-10-2011, 19:39
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: Using cameras

With the newer radios, you now have two ways of getting video to the laptop. If using an 8-slot cRIO, you can connect the camera to the second port, have the cRIO read and retransmit to the laptop. This was called the PCVideoServer for C++ and Java. This was done automatically for LV as long as the camera was opened. This form of video server puts a bit of overhead on the cRIO and from my experience the lag can be as low as 0.5 seconds, but if you aren't careful, you can load up the cRIO or the dashboard, or you can misconfigure the PCVideoServer, and the lag will grow to be up to five seconds.

If using the newer radios that include a switch, you can connect the radio directly to the switch, and the dashboard laptop can request a second stream directly. No overhead at all for the cRIO, and when using MJPG, the latency is very small. I've had three cameras streaming before. You will need to update the dashboard in order to do it this way.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 18-10-2011, 03:36
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 259
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: Using cameras

We placed the camera just under the bumper / above the intake in 2010, only sending the result to the driver station (it wasn't used for anything on the robot). It was definitely useful for finding balls hidden behind bumps that year, since we often played the middle and back, and balls (as Murphy would predict) tended to roll right where you couldn't see them!

Interesting factoid: the camera was mounted upside down so it didn't interfere with our pincher. There's a setting in the camera to flip the image for you, so we didn't even have to do that in code anywhere.

We used a custom dashboard to display the camera image (it's posted somewhere on CD), not the labview one, which gave us a near-realtime 30 fps view at the driver station.
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)

Last edited by Peter Johnson : 18-10-2011 at 03:39.
Reply With Quote
  #8   Spotlight this post!  
Unread 18-10-2011, 03:59
R.C.'s Avatar
R.C. R.C. is offline
2017... Oooh Kill em, Swerve!
AKA: Owner, WestCoast Products
FRC #1323 (MadTown Robotics)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Madera, CA
Posts: 2,184
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
Re: Using cameras

Quote:
Originally Posted by Peter Johnson View Post
We used a custom dashboard to display the camera image (it's posted somewhere on CD), not the labview one, which gave us a near-realtime 30 fps view at the driver station.
Very curious, do you what this dashboard is called? I'd really like to give it a try!

Thanks!

-RC
__________________
R.C.
Owner, WestCoast Products || Twitter
MadTown Robotics Team 1323
Reply With Quote
  #9   Spotlight this post!  
Unread 19-10-2011, 08:35
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: Using cameras

It was likely ZomB. Any dashboard which directly requests MJPGs from the camera will get high framerates. The default dashboards for LV and I suspect Java shipped with the Video Server option as the default, but were easily changed to use the MJPG.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 19-10-2011, 08:45
Taylor's Avatar
Taylor Taylor is offline
Professor of Thinkology, ThD
AKA: @taylorstem
FRC #3487 (Red Pride Robotics)
Team Role: Teacher
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Indianapolis, IN, USA 46227
Posts: 4,600
Taylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond repute
Re: Using cameras

For Lunacy, we mounted the camera on the front of the robot, pointing down aimed directly in front of our floor intake. A live feed was streamed back to our driver station. This helped us pinpoint and collect empty cells to take back to the human players and exchange for super cells. We received an innovation award at IRI that year for the setup (I believe that was the last year IRI distributed judged awards).
__________________
Hi!
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 02:39.

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