Thunderbots Project
Loading...
Searching...
No Matches
constants.h
1#pragma once
2
3#include <string>
4
5#include "shared/constants.h"
6
7// How many milliseconds a robot must not be seen in vision before it is
8// considered as "gone" and no longer reported.
9static constexpr unsigned int ROBOT_DEBOUNCE_DURATION_MILLISECONDS = 200;
10
11// Unix Socket Paths
12const std::string TACTIC_OVERRIDE_PATH = "/tactic_override";
13const std::string PLAY_OVERRIDE_PATH = "/play_override";
14const std::string WORLD_PATH = "/world";
15const std::string PRIMITIVE_PATH = "/primitive";
16const std::string ROBOT_STATUS_PATH = "/robot_status";
17const std::string DEFENDING_SIDE = "/defending_side";
18const std::string SSL_WRAPPER_PATH = "/ssl_wrapper";
19const std::string BLUE_SSL_WRAPPER_PATH = "/blue_ssl_wrapper";
20const std::string YELLOW_SSL_WRAPPER_PATH = "/yellow_ssl_wrapper";
21const std::string SSL_REFEREE_PATH = "/ssl_referee";
22const std::string SENSOR_PROTO_PATH = "/sensor_proto";
23const std::string WORLD_STATE_PATH = "/world_state";
24const std::string BLUE_ROBOT_STATUS_PATH = "/blue_robot_status";
25const std::string YELLOW_ROBOT_STATUS_PATH = "/yellow_robot_status";
26const std::string SIMULATION_TICK_PATH = "/simulation_tick";
27const std::string YELLOW_WORLD_PATH = "/yellow_world";
28const std::string BLUE_WORLD_PATH = "/blue_world";
29const std::string BLUE_PRIMITIVE_SET = "/blue_primitive_set";
30const std::string YELLOW_PRIMITIVE_SET = "/yellow_primitive_set";
31const std::string SIMULATOR_STATE_PATH = "/simulator_state";
32const std::string VALIDATION_PROTO_SET_PATH = "/validation_proto_set";
33const std::string ROBOT_LOG_PATH = "/robot_log";
34const std::string ROBOT_CRASH_PATH = "/robot_crash";
35const std::string REPLAY_BOOKMARK_PATH = "/replay_bookmark";
36const std::string DYNAMIC_PARAMETER_UPDATE_REQUEST_PATH = "/dynamic_parameter_request";
37const std::string DYNAMIC_PARAMETER_UPDATE_RESPONSE_PATH = "/dynamic_parameter_response";
38const std::string WORLD_STATE_RECEIVED_TRIGGER_PATH = "/world_state_received_trigger";
39
40const unsigned UNIX_BUFFER_SIZE = 20000;
41
42static const double BALL_TO_FRONT_OF_ROBOT_DISTANCE_WHEN_DRIBBLING =
43 BALL_MAX_RADIUS_METERS -
44 2 * BALL_MAX_RADIUS_METERS * MAX_FRACTION_OF_BALL_COVERED_BY_ROBOT;
45
46// Redis Keys
47const std::string ROBOT_ID_REDIS_KEY = "/robot_id";
48const std::string ROBOT_MULTICAST_CHANNEL_REDIS_KEY = "/channel_id";
49const std::string ROBOT_NETWORK_INTERFACE_REDIS_KEY = "/network_interface";
50const std::string ROBOT_KICK_CONSTANT_REDIS_KEY = "/kick_constant";
51const std::string ROBOT_KICK_EXP_COEFF_REDIS_KEY = "/kick_coeff";
52const std::string ROBOT_CHIP_PULSE_WIDTH_REDIS_KEY = "/chip_pulse_width";
53const std::string ROBOT_CURRENT_DRAW_REDIS_KEY = "/current_draw";
54const std::string ROBOT_BATTERY_VOLTAGE_REDIS_KEY = "/battery_voltage";
55const std::string ROBOT_CAPACITOR_VOLTAGE_REDIS_KEY = "/cap_voltage";
56
57const std::string SSL_VISION_ADDRESS = "224.5.23.2";
58static constexpr unsigned int SSL_VISION_PORT = 10020;
59
60const std::string SSL_REFEREE_ADDRESS = "224.5.23.1";
61static constexpr unsigned int SSL_REFEREE_PORT = 10003;