DynamicallyPursue

A Pursue strategy variant that allows changing the destination dynamically.

Parameters

action

the navigation action backing this strategy.

Type Parameters

T

the concentration type.

L

the landmark shape type used by the node's cognitive map.

R

the relation/edge type used by the node's cognitive map.

Inheritors

Constructors

Link copied to clipboard

Properties

Link copied to clipboard

the navigation action driving this strategy.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun inNewRoom(newRoom: ConvexPolygon)

Called whenever the node enters a new room.

Link copied to clipboard
open fun inUnexpectedNewRoom(previousRoom: ConvexPolygon, expectedNewRoom: ConvexPolygon, actualNewRoom: ConvexPolygon)

Called when the node ends up in an unexpected room while moving. By default, unexpected rooms are treated the same as expected ones.

Link copied to clipboard
fun setDestination(newDestination: Euclidean2DPosition, voidVolatileMemory: Boolean = false)

Changes the destination of the strategy. If voidVolatileMemory is true, the node's volatile memory is reset to zero while preserving known impasses.