CARLA
Namespaces | Macros | Variables
Constants.h File Reference
#include <limits>
#include <stdint.h>
+ Include dependency graph for Constants.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 carla
 This file contains definitions of common data structures used in traffic manager.
 
 carla::traffic_manager
 
 carla::traffic_manager::constants
 
 carla::traffic_manager::constants::Collision
 
 carla::traffic_manager::constants::FrameMemory
 
 carla::traffic_manager::constants::HybridMode
 
 carla::traffic_manager::constants::LaneChange
 
 carla::traffic_manager::constants::Map
 
 carla::traffic_manager::constants::MotionPlan
 
 carla::traffic_manager::constants::Networking
 
 carla::traffic_manager::constants::PathBufferUpdate
 
 carla::traffic_manager::constants::PID
 
 carla::traffic_manager::constants::SpeedThreshold
 
 carla::traffic_manager::constants::TrackTraffic
 
 carla::traffic_manager::constants::TrafficLight
 
 carla::traffic_manager::constants::VehicleRemoval
 
 carla::traffic_manager::constants::WaypointSelection
 

Macros

#define RATE(MaxY, MinY, DiffX)   (((MaxY) - (MinY)) / (DiffX))
 
#define SQUARE(a)   ((a) * (a))
 This file contains various constants used in traffic manager arranged into sensible namespaces for re-usability across different files. More...
 

Variables

static const float carla::traffic_manager::constants::SpeedThreshold::AFTER_JUNCTION_MIN_SPEED = 5.0f / 3.6f
 
static const float carla::traffic_manager::constants::SpeedThreshold::ARBITRARY_MAX_SPEED = 100.0f / 3.6f
 
static const double carla::traffic_manager::constants::VehicleRemoval::BLOCKED_TIME_THRESHOLD = 90.0
 
static const float carla::traffic_manager::constants::Collision::BOUNDARY_EXTENSION_MAXIMUM = 50.0f
 
static const float carla::traffic_manager::constants::Collision::BOUNDARY_EXTENSION_MINIMUM = 2.0f
 
static const float carla::traffic_manager::constants::Collision::BOUNDARY_EXTENSION_RATE
 
static const uint64_t carla::traffic_manager::constants::TrackTraffic::BUFFER_STEP_THROUGH = 10
 
static const float carla::traffic_manager::constants::Collision::COS_10_DEGREES = 0.9848f
 
static const float carla::traffic_manager::constants::MotionPlan::CRITICAL_BRAKING_MARGIN = 0.25f
 
static const double carla::traffic_manager::constants::VehicleRemoval::DELTA_TIME_BETWEEN_DESTRUCTIONS = 10.0
 
static const double carla::traffic_manager::constants::TrafficLight::DOUBLE_NO_SIGNAL_PASSTHROUGH_INTERVAL = 5.0
 
static const float carla::traffic_manager::constants::PID::DT = 0.05f
 
static const float carla::traffic_manager::constants::Collision::EPSILON = 2.0f * std::numeric_limits<float>::epsilon()
 
static const float carla::traffic_manager::constants::MotionPlan::EPSILON_RELATIVE_SPEED = 0.001f
 
static const float carla::traffic_manager::constants::Collision::EPSILON_VELOCITY = 0.1f
 
static const float carla::traffic_manager::constants::MotionPlan::FOLLOW_DISTANCE_RATE
 
static const float carla::traffic_manager::constants::Map::GRID_SIZE = 4.0f
 
static const uint64_t carla::traffic_manager::constants::FrameMemory::GROWTH_STEP_SIZE = 50u
 
static const float carla::traffic_manager::constants::SpeedThreshold::HIGHWAY_SPEED = 50.0f / 3.6f
 
static const float carla::traffic_manager::constants::PathBufferUpdate::HORIZON_RATE
 
static const double carla::traffic_manager::constants::HybridMode::HYBRID_MODE_DT = 0.05
 
static const float carla::traffic_manager::constants::HybridMode::HYBRID_MODE_DT_FL = 0.05f
 
static const float carla::traffic_manager::constants::Map::INFINITE_DISTANCE = std::numeric_limits<float>::max()
 
static const uint64_t carla::traffic_manager::constants::FrameMemory::INITIAL_SIZE = 50u
 
static const float carla::traffic_manager::constants::LaneChange::INTER_LANE_CHANGE_DISTANCE = 10.0f
 
static const float carla::traffic_manager::constants::TrackTraffic::INV_BUFFER_STEP_THROUGH = 0.1f
 
static const float carla::traffic_manager::constants::PID::INV_DT = 1.0f / DT
 
static const float carla::traffic_manager::constants::FrameMemory::INV_GROWTH_STEP_SIZE = 1.0f / static_cast<float>(GROWTH_STEP_SIZE)
 
static const double carla::traffic_manager::constants::HybridMode::INV_HYBRID_DT = 1.0 / HYBRID_MODE_DT
 
static const float carla::traffic_manager::constants::Map::INV_MAP_RESOLUTION = 10.0f
 
static const float carla::traffic_manager::constants::WaypointSelection::JUNCTION_LOOK_AHEAD = 10.0f
 
static const float carla::traffic_manager::constants::Collision::LOCKING_DISTANCE_PADDING = 4.0f
 
static const double carla::traffic_manager::constants::Map::MAP_RESOLUTION = 0.1
 
static const float carla::traffic_manager::constants::PID::MAX_BRAKE = 1.0f
 
static const float carla::traffic_manager::constants::Collision::MAX_COLLISION_RADIUS = 100.0f
 
static const float carla::traffic_manager::constants::MotionPlan::MAX_FOLLOW_LEAD_DISTANCE = 10.0f
 
static const float carla::traffic_manager::constants::Map::MAX_GEODESIC_GRID_LENGTH = 20.0f
 
static const float carla::traffic_manager::constants::MotionPlan::MAX_JUNCTION_BLOCK_DISTANCE = 0.5f * WaypointSelection::SAFE_DISTANCE_AFTER_JUNCTION
 
static const float carla::traffic_manager::constants::Collision::MAX_LOCKING_EXTENSION = 10.0f
 
static const float carla::traffic_manager::constants::PathBufferUpdate::MAX_START_DISTANCE = 30.0f
 
static const float carla::traffic_manager::constants::PID::MAX_THROTTLE = 0.7f
 
static const float carla::traffic_manager::constants::PathBufferUpdate::MAXIMUM_HORIZON_LENGTH = 60.0f
 
static const float carla::traffic_manager::constants::LaneChange::MAXIMUM_LANE_OBSTACLE_CURVATURE = 0.6f
 
static const float carla::traffic_manager::constants::LaneChange::MAXIMUM_LANE_OBSTACLE_DISTANCE = 50.0f
 
static const float carla::traffic_manager::constants::MotionPlan::MIN_FOLLOW_LEAD_DISTANCE = 5.0f
 
static const float carla::traffic_manager::constants::WaypointSelection::MIN_JUNCTION_LENGTH = 5.0f
 
static const float carla::traffic_manager::constants::WaypointSelection::MIN_SAFE_INTERVAL_LENGTH = 0.9f * SAFE_DISTANCE_AFTER_JUNCTION
 
static const uint64_t carla::traffic_manager::constants::Networking::MIN_TRY_COUNT = 20u
 
static const float carla::traffic_manager::constants::PathBufferUpdate::MINIMUM_HORIZON_LENGTH = 30.0f
 
static const float carla::traffic_manager::constants::LaneChange::MINIMUM_LANE_CHANGE_DISTANCE = 15.0f
 
static const uint64_t carla::traffic_manager::constants::TrafficLight::NO_SIGNAL_PASSTHROUGH_INTERVAL = 5u
 
static const float carla::traffic_manager::constants::Map::PED_GRID_SIZE = 10.0f
 
static const float carla::traffic_manager::constants::HybridMode::PHYSICS_RADIUS = 50.0f
 
static const double carla::traffic_manager::constants::VehicleRemoval::RED_TL_BLOCKED_TIME_THRESHOLD = 180.0
 
static const float carla::traffic_manager::constants::MotionPlan::RELATIVE_APPROACH_SPEED = 10.0f / 3.6f
 
static const float carla::traffic_manager::constants::WaypointSelection::SAFE_DISTANCE_AFTER_JUNCTION = 10.0f
 
static const float carla::traffic_manager::constants::Collision::SQUARE_ROOT_OF_TWO = 1.414f
 
static const float carla::traffic_manager::constants::VehicleRemoval::STOPPED_VELOCITY_THRESHOLD = 0.8f
 
static const float carla::traffic_manager::constants::WaypointSelection::TARGET_WAYPOINT_HORIZON_LENGTH = 2.5f
 
static const float carla::traffic_manager::constants::WaypointSelection::TARGET_WAYPOINT_TIME_HORIZON = 1.0f
 
static const unsigned short carla::traffic_manager::constants::Networking::TM_DEFAULT_PORT = 8000u
 
static const int64_t carla::traffic_manager::constants::Networking::TM_TIMEOUT = 2000
 
static const float carla::traffic_manager::constants::PID::VELOCITY_INTEGRAL_MAX = 5.0f
 
static const float carla::traffic_manager::constants::PID::VELOCITY_INTEGRAL_MIN = -5.0f
 
static const float carla::traffic_manager::constants::Collision::VERTICAL_OVERLAP_THRESHOLD = 4.0f
 
static const float carla::traffic_manager::constants::Collision::WALKER_TIME_EXTENSION = 1.5f
 

Macro Definition Documentation

◆ RATE

#define RATE (   MaxY,
  MinY,
  DiffX 
)    (((MaxY) - (MinY)) / (DiffX))

Definition at line 12 of file Constants.h.

◆ SQUARE

#define SQUARE (   a)    ((a) * (a))