gwnavruntime/pathfollower/avoidanceworkspace.h Source File
Go to the documentation of this file.
10 #ifndef Navigation_AvoidanceWorkspace_H
11 #define Navigation_AvoidanceWorkspace_H
23 typedef KyArrayPOD<AvoidanceCollider, MemStat_PathFollowing, Kaim::ArrayConstPolicy<0, 16, true> > ColliderArray;
25 enum AvoidanceWorkspaceAddColliderResult
27 AvoidanceWorkspace_ColliderAdded = 0,
28 AvoidanceWorkspace_ColliderIgnored
37 class AvoidanceWorkspace
45 : m_doSendVisualDebugBlob(
true)
46 , m_visualDebugAltitude(0.f)
83 bool m_doSendVisualDebugBlob;
89 #endif // Navigation_AvoidanceWorkspace_H
KyFloat32 ComputeAvoidanceScore(const Vec2f &candidateVelocity, const KyFloat32 safetyDistance, const KyFloat32 timeHorizon, KyFloat32 &collisionTime, KyInt32 &colliderIndex) const
Compute the avoidance score.
AvoidanceWorkspace aggregates at once:
Definition: avoidanceworkspace.h:38
ColliderArray m_colliders
The array of Colliders which Avoidance have been kept in #m_avoidances.
Definition: avoidanceworkspace.h:81
Set of parameters used to configure AvoidanceComputer.
Definition: avoidanceconfig.h:117
AvoidanceWorkspaceAddColliderResult AddCollider(const AvoidanceConfig &config, AvoidanceCollider &collider)
Compute the time to collision and filters accordingly:
int KyInt32
Type used internally to represent a 32-bit integer.
Definition: types.h:35
AvoidanceCollider m_rootCollider
The AvoidanceCollider corresponding to the Bot for which the AvoidanceWorkspace is used to compute an...
Definition: avoidanceworkspace.h:78
This class defines a two-dimensional vector whose coordinates are stored using floating-point numbers...
Definition: vec2f.h:24
A Collider is a 2D circular particle with a linear velocity.
Definition: avoidancecollider.h:19
Definition: gamekitcrowddispersion.h:20
void Reset(const AvoidanceCollider &rootCollider, KyFloat32 visualDebugAltitude=0.f)
Reset the workspace and prepare it for a given root collider.
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43
ColliderArray m_ignoredColliders
The array of discarded Colliders.
Definition: avoidanceworkspace.h:86