Package populus :: Module ReactiveAgents :: Class ReactiveHuman
[frames] | no frames]

Class ReactiveHuman

This class defines a reactive human agent as a social territorial mind which controls a human like body with head and eyes rotation.

A ReactiveHuman can navigate a dynamic environment reaching a destination while avoiding obstacles; can gaze and glance at given targets; can be in a conversation maintaining a proper position and orientation.

Nested Classes

Inherited from ReactiveMind.ReactiveMind: Motivation

Instance Methods

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

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

    Behavior Interfaces

Inherited from ReactiveLibrary.SocialTerritorialMind: doIdleGaze, focusOn, gazeAt, glanceAt, turnHeadToward, turnToward

Inherited from ReactiveLibrary.NavigationalMind: goTo, moveTo

update(self, dt)
Update the agent state.
    Constructor and Destructor
The constructor create an instance of ReactiveHuman and wires up mind's motivations with body's receptors.
Destroy this instance of ReactiveHuman
    Getters and Setters

Inherited from MotionModel.SimpleHumanBody: bodyMat, eyesForward, eyesLocalMat, eyesLocalPos, eyesMat, eyesMaxAngExt, eyesMaxAngSpeed, eyesPosition, eyesRotation, eyesSide, eyesUp, forward, headForward, headLocalMat, headLocalPos, headMat, headMaxAngExt, headMaxAngSpeed, headPosition, headRadius, headRotation, headSide, headTurning, headUp, heading, height, mass, maxAngSpeed, maxForce, maxSpeed, orientation, pitch, position, radius, roll, setBodyDirectionMotivation, setBodyMotionMotivation, setEyesDirectionMotivation, setEyesLocalPos, setEyesMaxAngExt, setEyesMaxAngSpeed, setEyesPosition, setHeadDirectionMotivation, setHeadLocalPos, setHeadMaxAngExt, setHeadMaxAngSpeed, setHeadPosition, setHeadRadius, setHeadTurning, setHeading, setHeight, setMass, setMaxAngSpeed, setMaxForce, setMaxSpeed, setPitch, setPosition, setRadius, setRoll, setTurning, setVelocity, side, speed, turning, up, velocity

Static Methods

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


Inherited from object: __class__

Method Details



The constructor create an instance of ReactiveHuman and wires up mind's motivations with body's receptors.

Overrides: object.__init__



Destroy this instance of ReactiveHuman

Overrides: MotionModel.SimpleHumanBody.remove

update(self, dt)


Update the agent state.

  • dt (float) - Delta time since the simulation step.
Overrides: MotionModel.SimpleHumanBody.update