Package populus :: Module ReactiveLibrary :: Class NavigationalMind
[frames] | no frames]

Class NavigationalMind


This class defines a reactive intelligence able to navigate a dynamic environment.

It can reach destinations, follow paths as well as avoid obstacles along the way.

Nested Classes

Inherited from ReactiveMind.ReactiveMind: Motivation

Instance Methods
 
__init__(self)
The constructor create an instance of NavigationalMind.

Inherited from ReactiveMind.ReactiveMind: addMotivation, createSteeringBehavior, forget, getBehaviorPriority, getBehaviorTime, getBehaviorTimeMarker, getBehaviorWeight, investigateBehavior, memorize, modifyBehaviorPriority, modifyBehaviorWeight, plugPerception, remember, requestStartBehavior, requestStopAllBehaviors, requestStopBehavior, setBehaviorTimeMarker, setBehaviorTimer, startSteeringBehavior, stopBehaviorLater, stopSteeringBehavior

Inherited from SteerLibrary.SteerLibraryMixIn: convertForceIntoCosts, initSetOfCosts, spanDirections, steerForArrival, steerForAvoidObstacle, steerForAvoidObstacles, steerForAvoidObstaclesNEW, steerForCohesion, steerForFacing, steerForFlee, steerForKeepGroupSpace, steerForMinDistance, steerForSeek

    Behavior Interfaces
 
goTo(self, dest)
Command the agent to move and reach a given destination point.
 
moveTo(self, target)
Command the agent to move and reach a given destination point or target.
    Update

Inherited from ReactiveMind.ReactiveMind: update

Static Methods

Inherited from SteerLibrary.SteerLibraryMixIn: addCost, getCost, getMagnitude, setCost, setMagnitude

Method Details

__init__(self)
(Constructor)

 

The constructor create an instance of NavigationalMind.

Overrides: SteerLibrary.SteerLibraryMixIn.__init__

goTo(self, dest)

 

Command the agent to move and reach a given destination point.

Parameters:
  • dest (Point3) - A destination point in global coordinates.

moveTo(self, target)

 

Command the agent to move and reach a given destination point or target. The agent will try to avoid static obstacles along the way.

Parameters:
  • target (Point3 or SimpleHumanBody) - A destination point in global coordinates or another human-like entity.