Go to Post What can fix anything?.... DUCT TAPE! - Mr.Twister [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 29-01-2009, 17:44
potnisanish potnisanish is offline
Registered User
FRC #2410
 
Join Date: Jan 2009
Location: Fromland
Posts: 2
potnisanish is an unknown quantity at this point
Moving the robot automatically to follow camera tracking

Our team has the camera working so it can track a color and recognize it as such, but we don't know how to get the robot to move automatically to be able to follow the color.


Anybody know?
  #2   Spotlight this post!  
Unread 29-01-2009, 18:00
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,349
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Moving the robot automatically to follow camera tracking

Quote:
Originally Posted by potnisanish View Post
Our team has the camera working so it can track a color and recognize it as such, but we don't know how to get the robot to move automatically to be able to follow the color.


Anybody know?
You will have to determine what PWM value of the Pan, or x-axis, servo is at when the camera is pointing in the direction you want to go. Then use that value as your offset, or zero value. Anything higher or lower and it is too far right, or left, depending on how you use it. Subtract the current x-axis PWM value from the offset value, that will give you a difference value that can be scaled to adjust your drives to rotate the robot toward the target.
The PWM value of the elevation, or y-axis, servo will give you a relative distance from the target. Determining the desired value when you are at the desired distance will again give you a reference for driving forward or back as needed.
I left this a little vague so that you can figure out the details and learn in the process.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #3   Spotlight this post!  
Unread 29-01-2009, 20:01
Rick Wagner's Avatar
Rick Wagner Rick Wagner is offline
Registered User
FRC #3008 (Kalani Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Honolulu, Hawaii
Posts: 188
Rick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to beholdRick Wagner is a splendid one to behold
Re: Moving the robot automatically to follow camera tracking

My team is mounting the camera rigidly to the robot, without the servo mechanism. Then we turn the robot to center the target in the image. The distance (number of pixels) the centroid of the target blob is from the center of the frame is the error signal that is minimized by turning the robot. The advantage of this is improved performance in not having to wait for the servo loop.
  #4   Spotlight this post!  
Unread 29-01-2009, 21:01
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,748
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Moving the robot automatically to follow camera tracking

Also search the forums for a thread I started on this same subject. There is an excellent link about 11 posts in from the BeachBots that will lead you to autonomous nirvana... if you are using Labview that is.
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
error when build the project for the camera tracking mahmosh C/C++ 1 04-02-2009 14:47
Camera tracking but not moving penguain NI LabVIEW 9 30-01-2009 10:10
How to make the camera search the light instead of only follow when targeted? jesusescobar Programming 4 18-02-2007 16:56
Moving robot while tracking with camera questions... Steve Orr Programming 6 02-02-2006 22:24
How do u get your robot to follow the white line?????????????????? HuskieRobotics Programming 26 04-03-2004 19:59


All times are GMT -5. The time now is 12:45.

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