SCL
1.0
Standard Control Library : Control, dynamics, physics, and simulation
|
#include <CSensorBase.hpp>
Public Member Functions | |
virtual sBool | setSensors (const Eigen::VectorXd &arg_sensory_input)=0 |
virtual sBool | applySensorModel ()=0 |
virtual sBool | getSensorOutput (Eigen::VectorXd &ret_sensor_output)=0 |
virtual sBool | sense (const Eigen::VectorXd &arg_sensory_input, Eigen::VectorXd &ret_sensor_output) |
virtual sBool | init (SSensorBase *arg_state)=0 |
virtual sBool | hasBeenInit () |
CSensorBase () | |
virtual | ~CSensorBase () |
Protected Attributes | |
SSensorBase * | state_ |
This class models a generic sensor such as an encoder or a camera. It presents a high level interface to the simulated sensor.
NOTE : Please don't be confused. This is a sensor "model", and as these functions make sense for a simulated sensor. It is "NOT" meant as an interface to a real sensor.
DO NOT subclass this base and start writing a driver in it.
|
inline |
Default constructor. Sets stuff to NULL
|
inlinevirtual |
Default destructor. Frees memory
|
pure virtual |
Applies the sensor model to the current input commands
|
pure virtual |
Gets the processed output of the sensor. Returned in the passed variable.
|
inlinevirtual |
Has this sensor been initialized
|
pure virtual |
All actutors must be initialized
|
inlinevirtual |
Convenience function that combines a sensor's functions
|
pure virtual |
Sets the sensor's values. This is done by the simulation. Typically, the sensors are given a perfect value and the sensor model processes the value in whatever way required.
|
protected |
The subclass must set this during the initialization call.