Enki::LocalInteraction Class Reference
[Core Enki classes]

#include <Interaction.h>

Inheritance diagram for Enki::LocalInteraction:

Enki::ActiveSoundSource Enki::AliceCommunication Enki::CircularCam Enki::FourWayMic Enki::IRSensor Enki::Microphone Enki::OmniCam Enki::SbotFeeding List of all members.

Detailed Description

Interacts with another object or wall only up to a certain distance.


Public Member Functions

 LocalInteraction ()
 Constructor.
 LocalInteraction (double range, Robot *owner)
 Constructor.
virtual ~LocalInteraction ()
 Destructor.
virtual void init (double dt, World *w)
 Init at each step.
virtual void objectStep (double dt, World *w, PhysicalObject *po)
 Interact with object.
virtual void wallsStep (double dt, World *w)
 Interact with walls.
virtual void finalize (double dt, World *w)
 Finalize at each step.
double getRange () const
 Return the range of the interaction.

Protected Attributes

double r
 Radius of the local interaction.
Robotowner
 The physical object that owns the interaction.

Friends

class Robot
 Robots can access protected members me.


Member Function Documentation

virtual void Enki::LocalInteraction::objectStep ( double  dt,
World w,
PhysicalObject po 
) [inline, virtual]

Interact with object.

Parameters:
dt time step
po object to interact with
w world where the interaction takes place

Reimplemented in Enki::CircularCam, Enki::OmniCam, and Enki::IRSensor.

virtual void Enki::LocalInteraction::wallsStep ( double  dt,
World w 
) [inline, virtual]

Interact with walls.

Parameters:
w world to which interact

Reimplemented in Enki::CircularCam, Enki::OmniCam, and Enki::IRSensor.


The documentation for this class was generated from the following file:
Generated on Sun Mar 1 03:10:09 2009 for Enki by  doxygen 1.5.1