|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
Re: More Vision questions
Quote:
UDP or TCP depending on your tolerance for latency and importance of the data arriving, etc... |
|
#17
|
|||
|
|||
|
Re: More Vision questions
My team has been using NI Vision assistant and we now know how to track objects on the screen; however, we were wondering how to impliment the tracking to motor movement. We want our robot to find the target then auto adjust to score. If anyone has any code, websites, or tips for us that would be great. Thank you.
|
|
#18
|
|||
|
|||
|
Re: More Vision questions
I have a general algorithm for you. Mind you, it requires an encoder or gyro, depending on what you're moving (turret or robot).
Step 1: Use camera to acquire angle relative to shooter. Step 2: Use Encoder/Gyro to turn that angle (or close to it). Step 3: Use camera to check new angle relative to shooter. If angle requires more adjustment, GOTO Step 2. Else, continue to Step 4. Step 4: FIRE! |
|
#19
|
||||
|
||||
|
In answer to the original four questions:
1. We've used a number of them, but most recently we used RoboRealm. 2. We're not sure, but it looks to be OpenCV on a Raspberry Pi, which we're going to use this year. 3. RoboRealm, by far. 4. Both RoboRealm and OpenCV are equally accurate. Last edited by GMeyer : 27-01-2016 at 17:14. Reason: Spelling Error |
|
#20
|
|||
|
|||
|
Re: More Vision questions
The vision example does some mapping on target location to make the target coordinates range from -1 to 1 in X and Y. The reason for this is that it makes the code independent of camera resolution and makes it very similar to a joystick output. You may need to multiply by a scaling number, but this is pretty close to being able to wire the camera result to the Robot Drive.
If you want to close the loop faster than your image processing allows, consider using a gyro or IMU to turn by X degrees. Greg McKaskle |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|