![]() |
An open-source, flexible 3D physical simulation framework
|
#include <MotorPositionSensor.h>
Public Member Functions | |
MotorPositionSensor (interfaces::ControlCenter *control, const unsigned long id, const std::string &name) | |
~MotorPositionSensor (void) | |
virtual int | getMonsterData (char *data) const |
virtual int | getSensorData (interfaces::sReal **data) const |
virtual void | receiveData (const data_broker::DataInfo &info, const data_broker::DataPackage &package, int callbackParam) |
The DataBroker will call this method to notify the receiver of whenever the condition for which the receiver registered occur. More... | |
![]() | |
SensorInterface (ControlCenter *center) | |
virtual | ~SensorInterface () |
![]() | |
BaseSensor () | |
virtual | ~BaseSensor () |
BaseSensor (unsigned long id, std::string name) | |
unsigned long | getID () const |
const std::string | getName () const |
virtual int | getAsciiData (char *data) const |
void | getCoreExchange (core_objects_exchange *obj) const |
virtual configmaps::ConfigMap | createConfig () const |
![]() | |
ReceiverInterface () | |
virtual | ~ReceiverInterface () |
Private Attributes | |
std::vector< motorPositionData > | values |
long | positionIndex |
Additional Inherited Members | |
![]() | |
static BaseConfig * | parseConfig (ControlCenter *control, configmaps::ConfigMap *config) |
![]() | |
unsigned long | id |
std::string | name |
unsigned long | updateRate |
![]() | |
ControlCenter * | control |
Definition at line 47 of file MotorPositionSensor.h.
mars::sim::MotorPositionSensor::MotorPositionSensor | ( | interfaces::ControlCenter * | control, |
const unsigned long | id, | ||
const std::string & | name | ||
) |
Definition at line 42 of file MotorPositionSensor.cpp.
mars::sim::MotorPositionSensor::~MotorPositionSensor | ( | void | ) |
Definition at line 71 of file MotorPositionSensor.cpp.
|
virtual |
Definition at line 77 of file MotorPositionSensor.cpp.
|
virtual |
Reimplemented from mars::interfaces::BaseSensor.
Definition at line 95 of file MotorPositionSensor.cpp.
|
virtual |
The DataBroker will call this method to notify the receiver of whenever the condition for which the receiver registered occur.
info | Information about the DataPackage. |
dataPackage | The DataPackage containing all the data. |
callbackParam | The int the receiver passed during registration. The default (the receiver didn't provide a callbackParam) is 0. This can be used to easily distinguish different registrations. |
Implements mars::data_broker::ReceiverInterface.
Definition at line 109 of file MotorPositionSensor.cpp.
|
private |
Definition at line 63 of file MotorPositionSensor.h.
|
private |
Definition at line 62 of file MotorPositionSensor.h.