34 #ifndef __ENKI_INTERACTION_H 35 #define __ENKI_INTERACTION_H virtual ~GlobalInteraction()
Destructor.
Definition: Interaction.h:105
virtual void finalize(double dt, World *w)
Finalize at each step.
Definition: Interaction.h:86
virtual void finalize(double dt, World *w)
Finalize at each step.
Definition: Interaction.h:111
virtual void init(double dt, World *w)
Init at each step.
Definition: Interaction.h:107
A situated object in the world with mass, geometry properties, physical properties, ...
Definition: PhysicalEngine.h:131
virtual void init(double dt, World *w)
Init at each step.
Definition: Interaction.h:72
Enki is the namespace of the Enki simulator. All Enki functions and classes excepted the math one are...
Definition: BluetoothBase.cpp:44
GlobalInteraction(Robot *owner)
Constructor.
Definition: Interaction.h:103
double r
Radius of the local interaction.
Definition: Interaction.h:57
Robot * owner
The physical object that owns the interaction.
Definition: Interaction.h:62
virtual void objectStep(double dt, World *w, PhysicalObject *po)
Interact with object.
Definition: Interaction.h:79
virtual ~LocalInteraction()
Destructor.
Definition: Interaction.h:70
LocalInteraction()
Constructor.
Definition: Interaction.h:66
The world is the container of all objects and robots.
Definition: PhysicalEngine.h:411
Interacts with the whole world.
Definition: Interaction.h:93
virtual void step(double dt, World *w)
Interact with world.
Definition: Interaction.h:109
LocalInteraction(double range, Robot *owner)
Constructor.
Definition: Interaction.h:68
Robot * owner
The physical object that owns the interaction.
Definition: Interaction.h:97
GlobalInteraction()
Constructor.
Definition: Interaction.h:101
double getRange() const
Return the range of the interaction.
Definition: Interaction.h:88
Interacts with another object or wall only up to a certain distance.
Definition: Interaction.h:53
virtual void wallsStep(double dt, World *w)
Interact with walls.
Definition: Interaction.h:84
A robot is a PhysicalObject that has additional interactions and a controller.
Definition: PhysicalEngine.h:379