View Single Post
  #15   Spotlight this post!  
Unread 29-06-2013, 00:14
gixxy's Avatar
gixxy gixxy is offline
Programming and Arduino Mentor
AKA: Gustave Michel III
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Ruston, LA
Posts: 207
gixxy is on a distinguished road
Re: Using a Raspberry Pi for camera tracking

Team 3946 successfully used a Raspberry Pi to get distance and angle from center data from the camera over a TCP Socket Connection in its own thread for use in an (almost successful) auto-aim system.

Our code is available on github:

Robot Side (Java): This class establishes a TCP Socket Client in a new thread and attempts to connect to the Raspberry Pi, from there you can design and subsystem and/or command to do the calls for new data: https://github.com/frc3946/UltimateA...hreadedPi.java
Raspberry Pi Side (Python): https://github.com/frc3946/PyGoalFin...leProcessor.py
__________________
Programmer - A creature known for converting Caffeine into Code.
Studying Computer Science @ Louisiana Tech University
Associate Consultant @ Fenway Group

2012-13: 3946 - Head of Programming, Electrical and Web
2014 - 3468 - Programming Mentor
2015 - Present - Lurker