View Single Post
  #4   Spotlight this post!  
Unread 18-10-2016, 18:26
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote