View Single Post
  #4   Spotlight this post!  
Unread 08-02-2009, 13:23
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Rookie Team Prgramming [autonomous]

Quote:
Originally Posted by Garii View Post
what i need to know is as follows:
-is there a way to use camera code to track not only colors but objects [ie other robots and barriers] and use that code so we can avoid those obejects
A fairly robust way of doing this that I can think of is to make use of the fact that a majority of the playing field is white this year, and that almost all teams that I have seen use-non white bumpers. Try taking a picture of your robot sitting on a white surface and import it into Vision Assistant, then play around with the Color Threshold filter.

To get a sense of where these obstacles might be, mount your camera at the bottom of your robot, and point it slightly downward. The y-position of the obstacles you identify will be roughly proportional to the distance they are away from you. A related algorithm is the Polly algorithm, more info here with some good pictures for visualization; you'll just be using white/non-white pixels instead of doing edge detection to find obstacles.

EDIT: Note, that this method will mean that you can't track trailers at the same time, as your camera has to be pointed at the floor. If you want to track trailers, I'd advise that you use the camera only for that, in which case you could consider using something like an ultrasonic range sensor to detect obstacles, although this is a much coarser way of doing it.

If you have any more questions, feel free to post back in this forum, and I'll try to help you out.

--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor

Last edited by RyanCahoon : 08-02-2009 at 13:44.
Reply With Quote