Finish roboRIO-side vision code
It all builds with --cpu=roborio now, and successfully starts listening
for data when run on my laptop. I think it should work...
Change-Id: I5cb107f61ad7a63b2e0926a92c3238893719c5f5
diff --git a/y2016/vision/vision_data.proto b/y2016/vision/vision_data.proto
new file mode 100644
index 0000000..4128871
--- /dev/null
+++ b/y2016/vision/vision_data.proto
@@ -0,0 +1,23 @@
+syntax = "proto2";
+
+package y2016.vision;
+
+// Represents a target found by the vision processing code.
+message Target {
+ optional float left_corner_x = 1;
+ optional float left_corner_y = 2;
+ optional float right_corner_x = 3;
+ optional float right_corner_y = 4;
+}
+
+// Contains all of the information extracted from a single frame captured by a
+// single camera.
+// TODO(Brian): Figure out what this all means and rework it to properly handle
+// 2 cameras without assuming they will stay perfectly in sync.
+message VisionData {
+ optional int32 camera_index = 1;
+ optional int64 image_timestamp = 2;
+ optional int64 send_timestamp = 3;
+ repeated Target target = 4;
+ optional bytes raw = 5;
+}