Enki  1.9
Public Member Functions | Public Attributes | List of all members
Enki::EPuckScannerTurret Class Reference

The rotating, long range distance sensor turret of the E-puck robot. More...

#include <EPuck.h>

Inheritance diagram for Enki::EPuckScannerTurret:
Enki::OmniCam Enki::LocalInteraction

Public Member Functions

 EPuckScannerTurret (Robot *owner, double height, unsigned halfPixelCount)
 Constructor. More...
 
virtual void finalize (double dt, World *w)
 Finalize at each step.
 
- Public Member Functions inherited from Enki::OmniCam
 OmniCam (Robot *owner, double height, unsigned halfPixelCount)
 Constructor. More...
 
virtual ~OmniCam ()
 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...
 
void setRange (double range)
 Change the sight range of the camera.
 
void setFogConditions (bool useFog, double density=0.0, Color threshold=Color::black)
 Change the fog condition for this camera. If useFog is true, an exponential fog with density will be used. Additionally, a threshold can be applied on the resulting color.
 
void setPixelOperationFunctor (PixelOperationFunctor *pixelOperationFunctor)
 Change the pixel operation functor.
 
- Public Member Functions inherited from Enki::LocalInteraction
 LocalInteraction ()
 Constructor.
 
 LocalInteraction (double range, Robot *owner)
 Constructor.
 
virtual ~LocalInteraction ()
 Destructor.
 
double getRange () const
 Return the range of the interaction.
 

Public Attributes

std::valarray< double > scan
 
- Public Attributes inherited from Enki::OmniCam
std::valarray< double > zbuffer
 zbuffer: distances at square (array of size pixelCount of double)
 
std::valarray< Colorimage
 Image (array of size pixelCount of Color)
 

Additional Inherited Members

- Protected Attributes inherited from Enki::OmniCam
CircularCam cam0
 Cameras doing the real job, first part.
 
CircularCam cam1
 Cameras doing the real job, second part.
 
- Protected Attributes inherited from Enki::LocalInteraction
double r
 Radius of the local interaction.
 
Robotowner
 The physical object that owns the interaction.
 

Detailed Description

The rotating, long range distance sensor turret of the E-puck robot.

The measured physical sensors response function is applied so zbuffer contains the simulated physical values

Constructor & Destructor Documentation

Enki::EPuckScannerTurret::EPuckScannerTurret ( Robot owner,
double  height,
unsigned  halfPixelCount 
)

Constructor.

Parameters
ownerrobot this camera is attached to
heightheight of this camera with respect to ground
halfPixelCounthalf the number of pixel to cover the full 2*PI field of view
minDistminimum scanning distance
maxDistmaximum scanning distance

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