Enki  1.9
Public Member Functions | Protected Attributes | Friends | List of all members
Enki::LocalInteraction Class Reference

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

#include <Interaction.h>

Inheritance diagram for Enki::LocalInteraction:
Enki::ActiveSoundSource Enki::CircularCam Enki::FourWayMic Enki::GroundSensor Enki::IRSensor Enki::Microphone Enki::OmniCam Enki::SbotFeeding

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. More...
 
virtual void wallsStep (double dt, World *w)
 Interact with walls. More...
 
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.
 

Detailed Description

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

Member Function Documentation

virtual void Enki::LocalInteraction::objectStep ( double  dt,
World w,
PhysicalObject po 
)
inlinevirtual

Interact with object.

Parameters
dttime step
poobject to interact with
wworld where the interaction takes place

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

virtual void Enki::LocalInteraction::wallsStep ( double  dt,
World w 
)
inlinevirtual

Interact with walls.

Parameters
wworld to which interact

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


The documentation for this class was generated from the following file: