Classes | |
class | Navigation |
Manage the pedestrians navigation, using the Recast & Detour library for low level calculations. More... | |
struct | VehicleCollisionInfo |
struct to send info about vehicles to the crowd More... | |
struct | WalkerEventIgnore |
empty event that just ignores More... | |
struct | WalkerEventStopAndCheck |
event to pause and check for near vehicles More... | |
class | WalkerEventVisitor |
visitor class More... | |
struct | WalkerEventWait |
event to wait for a while More... | |
struct | WalkerInfo |
class | WalkerManager |
struct | WalkerRoutePoint |
Typedefs | |
using | WalkerEvent = boost::variant2::variant< WalkerEventIgnore, WalkerEventWait, WalkerEventStopAndCheck > |
walker event variant More... | |
Enumerations | |
enum | EventResult : uint8_t { EventResult::Continue, EventResult::End, EventResult::TimeOut } |
result of an event More... | |
enum | NavAreas { CARLA_AREA_BLOCK = 0, CARLA_AREA_SIDEWALK, CARLA_AREA_CROSSWALK, CARLA_AREA_ROAD, CARLA_AREA_GRASS } |
enum | SamplePolyFlags { CARLA_TYPE_NONE = 0x01, CARLA_TYPE_SIDEWALK = 0x02, CARLA_TYPE_CROSSWALK = 0x04, CARLA_TYPE_ROAD = 0x08, CARLA_TYPE_GRASS = 0x10, CARLA_TYPE_ALL = 0xffff, CARLA_TYPE_WALKABLE = CARLA_TYPE_SIDEWALK | CARLA_TYPE_CROSSWALK | CARLA_TYPE_GRASS | CARLA_TYPE_ROAD } |
enum | UpdateFlags { DT_CROWD_ANTICIPATE_TURNS = 1, DT_CROWD_OBSTACLE_AVOIDANCE = 2, DT_CROWD_SEPARATION = 4, DT_CROWD_OPTIMIZE_VIS = 8, DT_CROWD_OPTIMIZE_TOPO = 16 } |
enum | WalkerState { WALKER_IDLE, WALKER_WALKING, WALKER_IN_EVENT, WALKER_STOP } |
Functions | |
static float | frand () |
Variables | |
static const float | AGENT_HEIGHT = 1.8f |
static const float | AGENT_RADIUS = 0.3f |
static const float | AGENT_UNBLOCK_DISTANCE = 0.5f |
static const float | AGENT_UNBLOCK_DISTANCE_SQUARED = AGENT_UNBLOCK_DISTANCE * AGENT_UNBLOCK_DISTANCE |
static const float | AGENT_UNBLOCK_TIME = 4.0f |
static const float | AREA_GRASS_COST = 1.0f |
static const float | AREA_ROAD_COST = 10.0f |
static const int | MAX_AGENTS = 500 |
static const int | MAX_POLYS = 256 |
static const int | MAX_QUERY_SEARCH_NODES = 2048 |
using carla::nav::WalkerEvent = typedef boost::variant2::variant<WalkerEventIgnore, WalkerEventWait, WalkerEventStopAndCheck> |
walker event variant
Definition at line 55 of file WalkerEvent.h.
|
strong |
enum carla::nav::NavAreas |
Enumerator | |
---|---|
CARLA_AREA_BLOCK | |
CARLA_AREA_SIDEWALK | |
CARLA_AREA_CROSSWALK | |
CARLA_AREA_ROAD | |
CARLA_AREA_GRASS |
Definition at line 26 of file Navigation.h.
Enumerator | |
---|---|
CARLA_TYPE_NONE | |
CARLA_TYPE_SIDEWALK | |
CARLA_TYPE_CROSSWALK | |
CARLA_TYPE_ROAD | |
CARLA_TYPE_GRASS | |
CARLA_TYPE_ALL | |
CARLA_TYPE_WALKABLE |
Definition at line 34 of file Navigation.h.
Enumerator | |
---|---|
DT_CROWD_ANTICIPATE_TURNS | |
DT_CROWD_OBSTACLE_AVOIDANCE | |
DT_CROWD_SEPARATION | |
DT_CROWD_OPTIMIZE_VIS | |
DT_CROWD_OPTIMIZE_TOPO |
Definition at line 23 of file Navigation.cpp.
Enumerator | |
---|---|
WALKER_IDLE | |
WALKER_WALKING | |
WALKER_IN_EVENT | |
WALKER_STOP |
Definition at line 23 of file WalkerManager.h.
|
static |
Definition at line 47 of file Navigation.cpp.
Referenced by carla::nav::Navigation::AddWalker(), carla::nav::Navigation::GetRandomLocation(), and carla::nav::Navigation::UpdateCrowd().
|
static |
Definition at line 36 of file Navigation.cpp.
Referenced by carla::nav::Navigation::AddOrUpdateVehicle(), and carla::nav::Navigation::AddWalker().
|
static |
Definition at line 37 of file Navigation.cpp.
Referenced by carla::nav::Navigation::AddWalker().
|
static |
Definition at line 39 of file Navigation.cpp.
|
static |
Definition at line 40 of file Navigation.cpp.
|
static |
Definition at line 41 of file Navigation.cpp.
|
static |
Definition at line 43 of file Navigation.cpp.
|
static |
Definition at line 44 of file Navigation.cpp.
|
static |
Definition at line 34 of file Navigation.cpp.
|
static |
Definition at line 33 of file Navigation.cpp.
Referenced by carla::nav::Navigation::GetAgentRoute(), and carla::nav::Navigation::GetPath().
|
static |
Definition at line 35 of file Navigation.cpp.