FollowRoute

A NavigationStrategy that follows a predefined route composed of waypoints. Each waypoint is considered reached when the pedestrian is inside the waypoint's room (except for the final waypoint, which is actually approached). The strategy uses Pursue to reach each intermediate waypoint and allows skipping intermediate waypoints when a farther waypoint becomes available.

Parameters

action

the navigation action driving 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 override fun inUnexpectedNewRoom(previousRoom: ConvexPolygon, expectedNewRoom: ConvexPolygon, actualNewRoom: ConvexPolygon)

When in an unexpected room the node gets back to previousRoom to continue following the route correctly.

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.