|
Enki
1.9
|
Interacts with another object or wall only up to a certain distance. More...
#include <Interaction.h>
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. | |
| Robot * | owner |
| The physical object that owns the interaction. | |
Friends | |
| class | Robot |
| Robots can access protected members me. | |
Interacts with another object or wall only up to a certain distance.
|
inlinevirtual |
Interact with object.
| dt | time step |
| po | object to interact with |
| w | world where the interaction takes place |
Reimplemented in Enki::OmniCam, Enki::IRSensor, and Enki::CircularCam.
|
inlinevirtual |
Interact with walls.
| w | world to which interact |
Reimplemented in Enki::OmniCam, Enki::IRSensor, and Enki::CircularCam.
1.8.11