|
Re: Vision code sample
There is a tutorial specifically about combining vision and the robot template code. There are actually two common ways of doing this.
The first is to keep the vision code on the DS laptop and process the images sent to the dashboard program. In this case, your robot code for vision will not be much more than opening the camera and setting up basic camera settings. The vision processing code will be in the dashboard code, in the vision loop. You can use Network Tables or TCP/UDP to update the robot with results of processing.
The second is to replace a portion of the robot vision code with the processing code.
The Vision example for 2016 has a project with code for both dashboard and robot, and the tutorial describes how to do this.
Greg McKaskle
|