13#define SQUARE(a) ((a) * (a))
14#define RATE(MaxY, MinY, DiffX) (((MaxY) - (MinY)) / (DiffX))
17namespace traffic_manager {
22static const unsigned short TM_DEFAULT_PORT = 8000u;
23static const int64_t TM_TIMEOUT = 2000;
26namespace VehicleRemoval {
34static const float HYBRID_MODE_DT_FL = 0.05f;
35static const double HYBRID_MODE_DT = 0.05;
40namespace SpeedThreshold {
46namespace PathBufferUpdate {
53namespace WaypointSelection {
56static const float JUNCTION_LOOK_AHEAD = 5.0f;
86static const float EPSILON = 2.0f * std::numeric_limits<float>::epsilon();
92namespace FrameMemory {
101static const float MAP_RESOLUTION = 5.0f;
112static const double MINIMUM_STOP_TIME = 2.0;
113static const double EXIT_JUNCTION_THRESHOLD = 0;
116namespace MotionPlan {
120static const float EPSILON_RELATIVE_SPEED = 0.001f;
130static const float PI = 3.1415927f;
150static const float DT = 0.05f;
159static const uint64_t BUFFER_STEP_THROUGH = 5;
#define SQUARE(a)
This file contains various constants used in traffic manager arranged into sensible namespaces for re...
static const float LOCKING_DISTANCE_PADDING
static const float VEL_EXT_FACTOR
static const float OVERLAP_THRESHOLD
static const float BOUNDARY_EXTENSION_MINIMUM
static const float BOUNDARY_EXTENSION_RATE
static const float MIN_VELOCITY_COLL_RADIUS
static const float COLLISION_RADIUS_RATE
static const float COS_10_DEGREES
static const float VERTICAL_OVERLAP_THRESHOLD
static const float SQUARE_ROOT_OF_TWO
static const float WALKER_TIME_EXTENSION
static const float MIN_REFERENCE_DISTANCE
static const float COLLISION_RADIUS_MIN
static const float COLLISION_RADIUS_STOP
static const float MAX_LOCKING_EXTENSION
static const uint64_t GROWTH_STEP_SIZE
static const float INV_GROWTH_STEP_SIZE
static const uint64_t INITIAL_SIZE
static const float PHYSICS_RADIUS
static const double INV_HYBRID_DT
static const double HYBRID_MODE_DT
static const float MIN_LANE_CHANGE_SPEED
static const float MAX_WPT_DISTANCE
static const float INTER_LANE_CHANGE_DISTANCE
static const float MAXIMUM_LANE_OBSTACLE_CURVATURE
static const float FIFTYPERC
static const float MAXIMUM_LANE_OBSTACLE_DISTANCE
static const float MINIMUM_LANE_CHANGE_DISTANCE
static const float MIN_WPT_DISTANCE
static float const Z_DELTA
static float const STRAIGHT_DEG
static const float INFINITE_DISTANCE
static const double MAX_WPT_DISTANCE
static const float MAX_WPT_RADIANS
static const float MAX_GEODESIC_GRID_LENGTH
static const float MAP_RESOLUTION
static const double MIN_LANE_WIDTH
static const float PERC_MAX_SLOWDOWN
static const float LANDMARK_DETECTION_TIME
static const float FRICTION
static const float CRITICAL_BRAKING_MARGIN
static const float FOLLOW_LEAD_FACTOR
static const float MAX_JUNCTION_BLOCK_DISTANCE
static const float TWO_KM
static const float RELATIVE_APPROACH_SPEED
static const float TL_TARGET_VELOCITY
static const uint16_t ATTEMPTS_TO_TELEPORT
static const float GRAVITY
static const float MIN_FOLLOW_LEAD_DISTANCE
static const float STOP_TARGET_VELOCITY
static const float YIELD_TARGET_VELOCITY
static const uint64_t MIN_TRY_COUNT
static const float INV_DT
static const float MAX_THROTTLE
static const float MAX_STEERING_DIFF
static const float MAX_BRAKE
static const std::vector< float > LATERAL_HIGHWAY_PARAM
static const std::vector< float > LONGITUDIAL_PARAM
static const std::vector< float > LONGITUDIAL_HIGHWAY_PARAM
static const float MAX_STEERING
static const std::vector< float > LATERAL_PARAM
static const float MAX_START_DISTANCE
static const float HORIZON_RATE
static const float HIGH_SPEED_HORIZON_RATE
static const float MINIMUM_HORIZON_LENGTH
static const float AFTER_JUNCTION_MIN_SPEED
static const float HIGHWAY_SPEED
static const float INITIAL_PERCENTAGE_SPEED_DIFFERENCE
static const uint64_t BUFFER_STEP_THROUGH
static const float SUN_ALTITUDE_DEGREES_BEFORE_DAWN
static const float MAX_DISTANCE_LIGHT_CHECK
static const float SUN_ALTITUDE_DEGREES_JUST_BEFORE_SUNSET
static const float FOG_DENSITY_THRESHOLD
static const float SUN_ALTITUDE_DEGREES_JUST_AFTER_DAWN
static const float HEAVY_PRECIPITATION_THRESHOLD
static const float SUN_ALTITUDE_DEGREES_AFTER_SUNSET
static const double RED_TL_BLOCKED_TIME_THRESHOLD
static const double BLOCKED_TIME_THRESHOLD
static const float STOPPED_VELOCITY_THRESHOLD
static const double DELTA_TIME_BETWEEN_DESTRUCTIONS
static const float SAFE_DISTANCE_AFTER_JUNCTION
static const float TARGET_WAYPOINT_TIME_HORIZON
static const float MIN_SAFE_INTERVAL_LENGTH
static const float MIN_TARGET_WAYPOINT_DISTANCE
static const float MIN_JUNCTION_LENGTH
This file contains definitions of common data structures used in traffic manager.