01-26-2010 03:42 PM
Hello there !
I was looking for the camera tracking code to make the robot and camera track the target.Can anyone tell me where it is located ?
I'm able to get the images on the FRC dashboard and also it is able to identify the targets with the deafult code !
Thanks,
Murthy
01-26-2010 08:02 PM
I'm not sure I understand your question. Since you say that the default code is tracking the target, you must of found the default code, which does track the target. What are you having trouble finding?
01-27-2010 12:10 PM
I should have been more clear. I was actually able to view images on the dashboard.Also the camera is able to identify the contours (green) of the target drawn. However I'm not able to see the movement of the robot or camera to search for the target and orient or face it. I had to move the camera manually to view the target ! . I thought the default code was supposed to track the target by automatically searching for it. Isn't that right?
Regards,
Murthy
01-27-2010 01:25 PM
Hi Murthy,
Which example are you running? If you are using the servo camera example, do you have the camera connected to a servo motor to turn the camera?
~Olivia
01-28-2010 01:15 PM
I'm not using any example VIs ! I just built the basic robot project (2010) and deployed it .Will it still be able to automatically track the targets with it ?
Thanks,
Murthy
01-28-2010 02:23 PM
Hi Murthy,
If you are deploying the default Robotics Project that gets created, it doesn't have any tracking algorithms included. If you want an example of how to implement image tracking, take a look at the Servo Camera Example that is included with LabVIEW.
~Olivia
01-28-2010 06:08 PM
I just created a new 2010 Game Robot Project from the template, and there is target tracking code included. It is in the Teleop VI. There is a VI called "Rotate to Target" which is connected to Arcade Drive; take a look in that VI for the tracking code. There are also comments on the front panel about which joystick button you need to push to activate the target tracking.