67 virtual void init() { worldFrequenciesState = 0; }
90 FourWayMic(owner, micDist, range, micModel, channels) {}
132 virtual void controlStep(
double dt) ;
147 virtual void step(
double dt) = 0;
virtual void init()
Initialisation, set world frequencies to zero. Called one time for each robot, which could be optimis...
Definition: Sbot.h:67
Specific microphone for S-bots.
Definition: Sbot.h:80
Header of sound emitter interaction.
Definition: DifferentialWheeled.h:45
~Sbot()
Destructor.
Definition: Sbot.h:111
static unsigned worldFrequenciesState
The world frequencies state, mask of all frequencies.
Definition: Sbot.h:57
SbotGlobalSound globalSound
the sound interaction, based on global frequencies
Definition: Sbot.h:105
double lastDEnergy
The previous energy difference.
Definition: Sbot.h:127
1D omnidirectional circular camera, based on 2 CircularCam Pixels start at -PI and then follow mathem...
Definition: CircularCam.h:135
A situated object in the world with mass, geometry properties, physical properties, ...
Definition: PhysicalEngine.h:131
A generic sound sensor/microphone.
Definition: Microphone.h:97
double energy
The actual energy of the Sbot.
Definition: Sbot.h:123
Header of the Sbot Active Object.
Enki is the namespace of the Enki simulator. All Enki functions and classes excepted the math one are...
Definition: BluetoothBase.cpp:44
unsigned frequenciesState
The frequencies state of this robot, mask of all frequencies.
Definition: Sbot.h:61
SbotMicrophone mic
4 microphones
Definition: Sbot.h:144
A very simplified model of the Sbot mobile robot.
Definition: Sbot.h:99
The world is the container of all objects and robots.
Definition: PhysicalEngine.h:411
static unsigned getWorldFrequenciesState(void)
Return state of the frequencies in the world.
Definition: Sbot.cpp:125
Interacts with the whole world.
Definition: Interaction.h:93
OmniCam camera
The omnidirectional linear camera.
Definition: Sbot.h:103
Robot * owner
The physical object that owns the interaction.
Definition: Interaction.h:97
Header of the features of differential wheeled robots.
Interaction sound between all Sbots.
Definition: Sbot.h:53
SbotMicrophone(Robot *owner, double micDist, double range, MicrophoneResponseModel micModel, unsigned channels)
Constructor e.g.
Definition: Sbot.h:88
Header of the generic infrared sensor.
Header of the 1D circular camera.
virtual void step(double dt, World *w)
Emit our frequencies to the world.
Definition: Sbot.h:69
FeedableSbot()
Constructor.
Definition: Sbot.h:130
ActiveSoundSource speaker
1 speaker
Definition: Sbot.h:146
Time limited sound emitter.
Definition: ActiveSoundSource.h:48
double dEnergy
The actual energy difference.
Definition: Sbot.h:125
This Sbot version has sound capabilities inherited from ActiveSoundObject, as well as the feeding and...
Definition: Sbot.h:140
An "improved" Sbot that can interact with SbotActiveObject.
Definition: Sbot.h:119
double(* MicrophoneResponseModel)(double, double)
A function for manipulating acquired sound, normally to model saturation, distance decreasing or freq...
Definition: Microphone.h:50
SbotGlobalSound(Robot *me)
Constructor.
Definition: Sbot.h:65
A robot is a PhysicalObject that has additional interactions and a controller.
Definition: PhysicalEngine.h:379