Emergency 2017 Dokumentation  v3.0.1
qsf::ai::steering Namespace Reference

Classes

class  AccelerationWaypointAdjuster
 
class  BrakingWaypointAdjuster
 
class  BulletCollisionAggregator
 
struct  PathLookaheadResult
 
class  ReservationCollisionAggregator
 
class  RouterCollisionAggregator
 
class  SteeringControlPoint
 

Enumerations

enum  BrakingReason {
  NO_STOP, PATH_ENDS, NODE_BLOCKED, AREA_BLOCKED,
  RESERVATION_MISSED, AVOID_COLLISION, PATH_FAIL
}
 

Functions

boost::optional< TurningConfigurationcreateLocalTurningConfiguration (const boost::optional< TurningConfiguration > &globalTurningConfiguration, const glm::vec3 &newLocalCenter)
 
float calculateTimeForAcceleratedMovementAlongDistance (const UnsignedFloat distance, const float acceleration, const UnsignedFloat velocityAtBegin)
 
float calculateDistanceForAcceleratedMovementAlongTime (const UnsignedFloat time, const float acceleration, const UnsignedFloat velocityAtBegin)
 
float calculateNeededAcceleration (UnsignedFloat v, UnsignedFloat v0, UnsignedFloat distance)
 
Time calculateTimeToWaypointReached (const glm::vec3 &waypointOffset, const glm::vec3 &velocity, const UnsignedFloat maxSpeed, const UnsignedFloat maxAcceleration, const UnsignedFloat distance, glm::vec3 &closestApproachToWaypoint, float &wpSpeed)
 
SpatialConfiguration3D interpolateWaypoint (const glm::vec3 &closestApproachToWaypoint, UnsignedFloat secondsLeftOnSegment, UnsignedFloat v0, float accelerationTowardsWP, const boost::optional< TurningConfiguration > &turningConfig, bool useLowerBoundDelta=true)
 
SpatialConfiguration3D interpolateWaypoint (const glm::vec3 &closestApproachToWaypoint, UnsignedFloat newDistance, const boost::optional< TurningConfiguration > &turningConfig, bool useLowerBoundDelta=true)
 
const char * getTextFor (BrakingReason annotation)
 
void tweakPathToEndInCollisionFreePosition (const NavigationComponent &navigator, std::vector< SteeringControlPoint > &path, DynamicCollisionLocalPlanner &collisionTester)
 

Enumeration Type Documentation

Enumerator
NO_STOP 
PATH_ENDS 
NODE_BLOCKED 
AREA_BLOCKED 
RESERVATION_MISSED 
AVOID_COLLISION 
PATH_FAIL 

Definition at line 22 of file BrakingReason.h.

Function Documentation

float qsf::ai::steering::calculateDistanceForAcceleratedMovementAlongTime ( const UnsignedFloat  time,
const float  acceleration,
const UnsignedFloat  velocityAtBegin 
)
float qsf::ai::steering::calculateNeededAcceleration ( UnsignedFloat  v,
UnsignedFloat  v0,
UnsignedFloat  distance 
)
float qsf::ai::steering::calculateTimeForAcceleratedMovementAlongDistance ( const UnsignedFloat  distance,
const float  acceleration,
const UnsignedFloat  velocityAtBegin 
)
Time qsf::ai::steering::calculateTimeToWaypointReached ( const glm::vec3 &  waypointOffset,
const glm::vec3 &  velocity,
const UnsignedFloat  maxSpeed,
const UnsignedFloat  maxAcceleration,
const UnsignedFloat  distance,
glm::vec3 &  closestApproachToWaypoint,
float &  wpSpeed 
)
boost::optional<TurningConfiguration> qsf::ai::steering::createLocalTurningConfiguration ( const boost::optional< TurningConfiguration > &  globalTurningConfiguration,
const glm::vec3 &  newLocalCenter 
)
const char* qsf::ai::steering::getTextFor ( BrakingReason  annotation)
inline

Definition at line 33 of file BrakingReason.h.

SpatialConfiguration3D qsf::ai::steering::interpolateWaypoint ( const glm::vec3 &  closestApproachToWaypoint,
UnsignedFloat  secondsLeftOnSegment,
UnsignedFloat  v0,
float  accelerationTowardsWP,
const boost::optional< TurningConfiguration > &  turningConfig,
bool  useLowerBoundDelta = true 
)
SpatialConfiguration3D qsf::ai::steering::interpolateWaypoint ( const glm::vec3 &  closestApproachToWaypoint,
UnsignedFloat  newDistance,
const boost::optional< TurningConfiguration > &  turningConfig,
bool  useLowerBoundDelta = true 
)
void qsf::ai::steering::tweakPathToEndInCollisionFreePosition ( const NavigationComponent navigator,
std::vector< SteeringControlPoint > &  path,
DynamicCollisionLocalPlanner collisionTester 
)