CARLA
Classes | Typedefs | Enumerations | Functions | Variables
carla::nav Namespace Reference

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::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
 

Typedef Documentation

◆ WalkerEvent

walker event variant

Definition at line 43 of file WalkerEvent.h.

Enumeration Type Documentation

◆ EventResult

enum carla::nav::EventResult : uint8_t
strong

result of an event

Enumerator
Continue 
End 
TimeOut 

Definition at line 20 of file WalkerEvent.h.

◆ 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.

◆ SamplePolyFlags

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.

◆ UpdateFlags

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.

◆ WalkerState

Enumerator
WALKER_IDLE 
WALKER_WALKING 
WALKER_IN_EVENT 
WALKER_STOP 

Definition at line 20 of file WalkerManager.h.

Function Documentation

◆ frand()

static float carla::nav::frand ( )
static

Definition at line 47 of file Navigation.cpp.

Referenced by carla::nav::Navigation::AddWalker(), carla::nav::Navigation::GetRandomLocation(), and carla::nav::Navigation::UpdateCrowd().

+ Here is the caller graph for this function:

Variable Documentation

◆ AGENT_HEIGHT

const float carla::nav::AGENT_HEIGHT = 1.8f
static

◆ AGENT_RADIUS

const float carla::nav::AGENT_RADIUS = 0.3f
static

Definition at line 37 of file Navigation.cpp.

Referenced by carla::nav::Navigation::AddWalker().

◆ AGENT_UNBLOCK_DISTANCE

const float carla::nav::AGENT_UNBLOCK_DISTANCE = 0.5f
static

Definition at line 39 of file Navigation.cpp.

◆ AGENT_UNBLOCK_DISTANCE_SQUARED

const float carla::nav::AGENT_UNBLOCK_DISTANCE_SQUARED = AGENT_UNBLOCK_DISTANCE * AGENT_UNBLOCK_DISTANCE
static

Definition at line 40 of file Navigation.cpp.

◆ AGENT_UNBLOCK_TIME

const float carla::nav::AGENT_UNBLOCK_TIME = 4.0f
static

Definition at line 41 of file Navigation.cpp.

◆ AREA_GRASS_COST

const float carla::nav::AREA_GRASS_COST = 1.0f
static

Definition at line 43 of file Navigation.cpp.

◆ AREA_ROAD_COST

const float carla::nav::AREA_ROAD_COST = 10.0f
static

Definition at line 44 of file Navigation.cpp.

◆ MAX_AGENTS

const int carla::nav::MAX_AGENTS = 500
static

Definition at line 34 of file Navigation.cpp.

◆ MAX_POLYS

const int carla::nav::MAX_POLYS = 256
static

◆ MAX_QUERY_SEARCH_NODES

const int carla::nav::MAX_QUERY_SEARCH_NODES = 2048
static

Definition at line 35 of file Navigation.cpp.