Go to Post Were cargo shorts ever in fashion? I thought they were in the socks with sandals category. - AdamHeard [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-02-2007, 14:48
Zero_Cool Zero_Cool is offline
Registered User
FRC #1208
 
Join Date: Feb 2007
Location: Illinois
Posts: 3
Zero_Cool is an unknown quantity at this point
Question Tracking_state confusion

I have already written a working autonomous code with my team's robot, but I have a small problem that keeps occuring. Our robot will see the light and then a leg of the spider will obstruct the view of the camera, completely eclipsing the light. And if the camera is searching and can not find the light it will use those values and go into destroy mode killing everything around it. How can I use the tracking_state to stop the robot from moving if it doesn't see the light or if it has lost the light? I honestly do not understand the many states of this camera.

Last edited by Zero_Cool : 13-02-2007 at 14:50.
  #2   Spotlight this post!  
Unread 13-02-2007, 14:58
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: Tracking_state confusion

One approach would be to keep track of your heading, independent of the camera. If you loose tracking (confidence<1), then basically DR using your last good heading. If you had held a good track before loosing the light, it would safe to assume you could keep going that way (for a while, anyway).

Hope this helps

Jon Mittelman
Programming Mentor
Team 236
TechnoTicks
  #3   Spotlight this post!  
Unread 13-02-2007, 16:04
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Tracking_state confusion

Quote:
Originally Posted by Zero_Cool View Post
I have already written a working autonomous code with my team's robot, but I have a small problem that keeps occuring. Our robot will see the light and then a leg of the spider will obstruct the view of the camera, completely eclipsing the light. And if the camera is searching and can not find the light it will use those values and go into destroy mode killing everything around it. How can I use the tracking_state to stop the robot from moving if it doesn't see the light or if it has lost the light? I honestly do not understand the many states of this camera.
If I understand your problem correctly, you might consider mounting the camera at the rear of the 'bot.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #4   Spotlight this post!  
Unread 13-02-2007, 16:26
Zero_Cool Zero_Cool is offline
Registered User
FRC #1208
 
Join Date: Feb 2007
Location: Illinois
Posts: 3
Zero_Cool is an unknown quantity at this point
Re: Tracking_state confusion

Hey thanks guys, what I was really looking for was more of a statement that would read something similar to if (tracking_state == CAMERA_ON_TARGET){...} because we are unable to move the camera without destroying it with innertubes and the arm that we're using. Because i'm uncertain as to what the states are, where they are located, and how i can use them to make sure that my code will only work while the camera is locked on.
  #5   Spotlight this post!  
Unread 14-02-2007, 13:04
EricS-Team180's Avatar
EricS-Team180 EricS-Team180 is offline
SPAM, the lunchmeat of superheroes!
AKA: Eric Schreffler
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Stuart, Florida
Posts: 561
EricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond repute
Re: Tracking_state confusion

Quote:
Originally Posted by Zero_Cool View Post
something similar to if (tracking_state == CAMERA_ON_TARGET){...}
Take a look at the Get_Tracking_State function in Kevin's tracking.c I believe it has what you are looking for.

btw, our experience has been that you don't want to use the camera data for chassis commands until you get a CAMERA_ON_TARGET, and once you have a lock, don't ignore your camera until the tracking state has transitioned all the way to SEARCHING. (a bit of hysteresis seems helpful)
__________________

Don't PANIC!
S. P. A. M.
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Edu Robot Camera Test Bed bear24rw Programming 7 06-08-2006 11:37
Robot Reset & Camera Initalization Don Reid Programming 3 06-03-2006 18:45
Camera Controlled Robot douglass1371 Programming 1 19-02-2006 19:22
Camera not working when connected to robot MarkVH Programming 5 14-02-2005 15:40
camera tracks but no movement from Robot Stillen Programming 4 04-02-2005 17:16


All times are GMT -5. The time now is 04:52.

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