![]() |
2014 Vision Code
Hello there everyone!
Our team is trying to work with the camera to track those vision targets to calculate distance and whether or not the goal is "hot" in autonomous. Can anyone help us out? This is our first year using vision, and we're lost. We've tried copy/pasting the example code, but it brings up errors about lost VIs and such. We tried using the vision assistant, but as I'm sure you know, it's pretty daunting and looks pretty complicated. I've looked at MANY tutorials, but couldn't find one that helps us in general. Any help would be greatly appreciated :-D |
Re: 2014 Vision Code
Quote:
|
Re: 2014 Vision Code
Quote:
Thanks! |
Re: 2014 Vision Code
This section of the FIRST/WPI documentation also covers some of the theory behind the example, including topics like calibration: http://wpilib.screenstepslive.com/s/3120/m/8731
|
Re: 2014 Vision Code
Quote:
Thanks for the link though :-) |
Re: 2014 Vision Code
Quote:
|
Re: 2014 Vision Code
I would highly suggest either doing the processing on the driver station or a coprocessor. Our team has already run into issues with letting the crio do the thinking...
|
Re: 2014 Vision Code
Quote:
|
Re: 2014 Vision Code
Looking at it more...I think processing on the cRIO would be easier. We're only using Vision for Autonomous, then we're planning on disabling vision.
|
Re: 2014 Vision Code
Whichever way you decide to go, it is helpful to share data between DS and robot. The tutorial touches on this, and I've participated in a few other CD threads that go deeper. If those don't answer your questions, please ask.
Greg McKaskle |
Re: 2014 Vision Code
Quote:
As for sending data from the DS back to the robot, you can usually just use NetworkTables to send the data. NI's code and RoboRealm both have easy NetworkTables integration built-in. (Not sure about OpenCV, haven't tried it.) |
Re: 2014 Vision Code
Thank you all for the help! We'll be doing some major testing to find the best route to go with and I'll come back with some questions if needed.
Thanks again! |
Re: 2014 Vision Code
Quote:
|
Re: 2014 Vision Code
Depending on your auton routine of choice, I suppose. We're going to try for more complex autonomous routine this year, so we'll need as much flexibility in the vision as we can get.
|
Re: 2014 Vision Code
The LV example code for finding a game ball is takes two passes. While it would run on the cRIO, the robot and potentially the ball are both moving. I would think it would be hard to accomplish this without a DS or additional processor. The field targets seem pretty easy to do on the cRIO or any of the other approaches. By the way, "easy-vision" is still vision -- it's all relative.
Greg McKaskle |
| All times are GMT -5. The time now is 09:45. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi