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

Functions

void ensureKeepingEndpointDistance (Path &path, const NavigationGoal::GoalConfigurationList &goalConfigs)
 
void keepDistanceToSingleWaypoint (Path &path, const logic::TargetPoint &targetPoint)
 
void cutoffPathAfterIndex (Path &path, unsigned int index, const logic::TargetPoint &targetPoint)
 
Waypoint modifyWaypointToMatchCircleLinearly (Path &path, unsigned int toModify, const logic::TargetPoint &targetPoint)
 
Waypoint modifyWaypointToMatchCircleCircular (Path &path, unsigned int toModify, const logic::TargetPoint &targetPoint)
 

Function Documentation

void qsf::ai::EnsureKeepingEndpointDistance::cutoffPathAfterIndex ( Path path,
unsigned int  index,
const logic::TargetPoint targetPoint 
)
void qsf::ai::EnsureKeepingEndpointDistance::ensureKeepingEndpointDistance ( Path path,
const NavigationGoal::GoalConfigurationList goalConfigs 
)

Implements a method to make sure the desired distance to the goal is kept. It modifies the waypoints such that the last waypoint is -distance- units away.

void qsf::ai::EnsureKeepingEndpointDistance::keepDistanceToSingleWaypoint ( Path path,
const logic::TargetPoint targetPoint 
)
Waypoint qsf::ai::EnsureKeepingEndpointDistance::modifyWaypointToMatchCircleCircular ( Path path,
unsigned int  toModify,
const logic::TargetPoint targetPoint 
)
Waypoint qsf::ai::EnsureKeepingEndpointDistance::modifyWaypointToMatchCircleLinearly ( Path path,
unsigned int  toModify,
const logic::TargetPoint targetPoint 
)