Log in

View Full Version : Vision Tracking Problems with RoboRealm/SmartDashboard


Arcadia7
08-02-2015, 22:06
Hello everyone,

Our team has been having trouble with vision tracking, specifically getting the values from RoboRealm to be output to SmartDashboard in real-time. To break it down for you, we've filtered the image from the Axis Camera and made it so the center of the brightest object is shown on the screen within a square, along with the X and Y coordinates labeled below. If we go into 'Watch Variables' function inside of RoboRealm, we can see COG_X and COG_Y (Center of Gravity AKA center of the object) listed and actively changing, just as it is in the screen. The only problem we seem to be having is outputting the COG_X and COG_Y values to SmartDashboard so that they change along with what is shown in Watch Variables. One thing we noticed however, we can set a value to the COG_X or COG_Y variables via the code or through TableViewer, however it's a static value and changes back to zero as we enable the robot. The following guide listed below was used, so we have a Web Server running, have included Network Tables inside of the code and RoboRealm, and have configured the IP addresses to what is to our knowledge to be correct. Any help will be appreciated, as we've been working on this for days and haven't been able to make much progress.

Guide that was used: http://wpilib.screenstepslive.com/s/3120/m/7932/l/98402-viewing-the-roborealm-output-in-smartdashboard