|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Camera Auto Tracking?
We got the camera setup and calibrated using the GUI. Is there a way to test the tracking of the target using the GUI? We have the pan and tilt servo motors hooked up.
Last edited by Ryan Cumings : 16-01-2005 at 20:07. |
|
#2
|
||||
|
||||
|
Re: Camera Auto Tracking?
once you have taken a frame you and have selected a color to track go to the servo tab and enable auto servo mode. Now when you go to the color tab and track, your servo should follow that color.
I also have another question to add about auto servo mode in the GUI. Does it work with pan only? I'm sure I have both servos in the right places (Servo0(pan),Servo1(tilt))? |
|
#3
|
|||
|
|||
|
Re: Camera Auto Tracking?
Quote:
|
|
#4
|
||||
|
||||
|
Re: Camera Auto Tracking?
Quote:
|
|
#5
|
|||
|
|||
|
Re: Camera Auto Tracking?
Quote:
|
|
#6
|
||||
|
||||
|
Re: Camera Auto Tracking?
Quote:
|
|
#7
|
|||||
|
|||||
|
Re: Camera Auto Tracking?
I got our camera working on our 04 bot yesterday, but the bot was getting absolutely no traction on the floor in our shop, so it would try to correct but keep skidding the wrong way, so it would way over correct then the wheels would catch and it would swerve violently the other way. I think I got a program fix for this but we will see today. And today we should get electronics on the kitbot so we can play with taht while build team builds our real bot.
|
|
#8
|
|||||
|
|||||
|
Re: Camera Auto Tracking?
Quote:
Our next hurdle is color calibration. Getting the right color vision targets and sufficient light on the practice field is proving to be a challenge at the moment. |
|
#9
|
||||
|
||||
|
Re: Camera Auto Tracking?
Quote:
|
|
#10
|
|||||
|
|||||
|
Re: Camera Auto Tracking?
Well I just got our robot working absolutely great, just by modifying the code. I dont have it right here with me, but basicaly what I did is I took that value for the pan servo, and instead of using that exact value to steer the robot, I made it into an int variable, then subtracted 127 from it, divided that value by three, then added 127, and used that value to steer the robot. Basically any time the robot goes to steer it only steers one third as sharp as the default code would make it do. The best part is that if your servo doesnt center exactly, then by changing the value of that 127 that you add back on to the value that does center the servo then you can correct for that. You can also change that 3 to make it more or less sensitive. You might also want to play with speed. The camera works bette if the bot goes slower.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Updated Infrared Tracking Code | Kevin Watson | Programming | 0 | 18-02-2004 21:41 |
| trouble with beacon tracking code | [53] opticruzer | Programming | 9 | 27-01-2004 12:19 |
| auto archiving of posts | Joe Ross | CD Forum Support | 4 | 01-01-2004 02:04 |
| My auto is better than yours.. lol | randomperson | Programming | 25 | 07-04-2003 12:10 |
| picking auto program | Mike375 | Programming | 19 | 03-03-2003 15:47 |