Parker Schuh | d497ed6 | 2017-03-04 20:11:58 -0800 | [diff] [blame^] | 1 | syntax = "proto2"; |
| 2 | |
| 3 | package y2017.vision; |
| 4 | |
| 5 | // Stores configuration for camera related settings and specs. |
| 6 | message CameraSettings { |
| 7 | // The focal length of the camera in pixels. |
| 8 | optional double focal_length = 1 [default = 1418.6]; |
| 9 | |
| 10 | // Width of the image. |
| 11 | optional int32 width = 2 [default = 1280]; |
| 12 | |
| 13 | // Height of the image. |
| 14 | optional int32 height = 3 [default = 960]; |
| 15 | |
| 16 | // Exposure setting. |
| 17 | optional int32 exposure = 4 [default = 10]; |
| 18 | |
| 19 | // Brightness setting. |
| 20 | optional int32 brightness = 5 [default = 128]; |
| 21 | |
| 22 | // Hardware gain multiplier on pixel values. |
| 23 | optional double gain = 6 [default = 1.0]; |
| 24 | |
| 25 | // Frames per second to run camera. |
| 26 | optional double fps = 7 [default = 30.0]; |
| 27 | } |
| 28 | |
| 29 | message GameSpecific { |
| 30 | // Needs more woojy. |
| 31 | optional int32 woojy = 1; |
| 32 | } |
| 33 | |
| 34 | // Configurations that may be robot dependent. |
| 35 | message RobotConfig { |
| 36 | // Device name of the camera (ie /dev/video1). |
| 37 | optional string camera_device_path = 1; |
| 38 | |
| 39 | // RoboRIO IP address. |
| 40 | optional string roborio_ipaddr = 2; |
| 41 | |
| 42 | // Jetson board IP address. |
| 43 | optional string jetson_ipaddr = 3; |
| 44 | |
| 45 | // Port to use (both sides). |
| 46 | optional int32 port = 4; |
| 47 | } |
| 48 | |
| 49 | // Stores configuration information for a given set of hardware. |
| 50 | message VisionConfig { |
| 51 | // Map robot name to the robot dependent configuration. |
| 52 | map<string, RobotConfig> robot_configs = 1; |
| 53 | |
| 54 | // Parameters for camera bringup. |
| 55 | optional CameraSettings camera_params = 2; |
| 56 | |
| 57 | // Parameters for this specific game |
| 58 | optional GameSpecific game_params = 3; |
| 59 | } |