|
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
|