This year, Team 330 used the dashboard to process vision and send the results to the robot via UDP. This is visible in our 2012 Robot Code, but is obscured due to the code doing a lot of other stuff.
Because of this, I created a simplified example (see the attached file). I created a plain robot project and dashboard and added the rectangular target processing example. The changes are fairly minimal. I removed the while loop from within the rectangular target processing vi, and removed the camera references, so that it accepted an image as the input. I then added the rectangular target processing vi to the dashboard vision loop.
To get the data to the robot, I added a UDP send to the vision loop, and added a UDP receive loop in periodic tasks.
Overall, it's pretty easy to process vision on the dashboard and send the results to the robot via UDP


Reply With Quote
