#include <Interaction.h>
Inheritance diagram for Enki::LocalInteraction:

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. | |
| Robot * | owner |
| The physical object that owns the interaction. | |
Friends | |
| class | Robot |
| Robots can access protected members me. | |
| virtual void Enki::LocalInteraction::objectStep | ( | double | dt, | |
| World * | w, | |||
| PhysicalObject * | po | |||
| ) | [inline, virtual] |
Interact with object.
| 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.
| w | world to which interact |
Reimplemented in Enki::CircularCam, Enki::OmniCam, and Enki::IRSensor.
1.5.1