Package-level declarations

Types

Link copied to clipboard
class DistanceWeighted<T>(environment: Euclidean2DEnvironment<T>, node: Node<T>, defaultWeight: Double = 1.0) : Weighted<T>

Weighted steering strategy where each steering action's weight is the inverse of the node's distance to the action's target. Closer targets yield higher weight. Actions without a target receive defaultWeight.

Link copied to clipboard
open class Filtered<T, P : Position<P>, Vector<P>>(steerStrategy: SteeringStrategy<T, P>, filter: List<SteeringAction<T, P>>.() -> List<SteeringAction<T, P>>) : SteeringStrategy<T, P>

Decorator for a SteeringStrategy that filters the provided steering actions before delegating the combination logic to the wrapped strategy.

Link copied to clipboard
class Nearest<T>(environment: Euclidean2DEnvironment<T>, node: Node<T>) : Filtered<T, Euclidean2DPosition>

Strategy that considers the group steering action (if present) and the nearest non-group steering action, then combines them using a DistanceWeighted strategy.

Link copied to clipboard
class SinglePrevalent<T, N : ConvexPolygon>(environment: Euclidean2DEnvironmentWithGraph<*, T, N, *>, node: Node<T>, prevalent: SteeringActions<T>.() -> NavigationAction2D<T, *, *, N, *>, toleranceAngle: Double = DEFAULT_TOLERANCE_ANGLE, alpha: Double = DEFAULT_ALPHA, maxWalk: () -> Double, maxWalkRatio: Double = DEFAULT_MAX_WALK_RATIO, delta: Double = DEFAULT_DELTA) : Weighted<T>

A SteeringStrategy in which one navigation action is prevalent and others are combined with a reduced weight so that the resulting force stays within a tolerance sector around the prevalent force while remaining inside the current room.

Link copied to clipboard

A PhysicalSteeringStrategy performing a simple sum of the overall intentional force and the physical ones.

Link copied to clipboard
class TypeBased<T>(environment: Euclidean2DEnvironment<T>, node: Node<T>, typeWeights: Map<KClass<SteeringAction<T, Euclidean2DPosition>>, Double>, defaultWeight: Double = 0.0) : Weighted<T>

A Weighted steering strategy assigning weights based on actions' types; the client provides a weight for each action KClass.

Link copied to clipboard

SteeringStrategy that computes the agent's next position as a weighted sum of steering actions.