![]() |
An open-source, flexible 3D physical simulation framework
|
#include <Joint6DOFSensor.h>
Public Member Functions | |
Joint6DOFSensor (interfaces::ControlCenter *control, Joint6DOFConfig config) | |
~Joint6DOFSensor (void) | |
virtual int | getAsciiData (char *data) const |
virtual int | getSensorData (interfaces::sReal **data) const |
void | getForceData (utils::Vector *force) |
void | getTorqueData (utils::Vector *torque) |
void | getAnchor (utils::Vector *anchor) |
void | getBodyQ (utils::Quaternion *body_q) |
virtual void | produceData (const data_broker::DataInfo &info, data_broker::DataPackage *package, int callbackParam) |
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... | |
virtual configmaps::ConfigMap | createConfig () const |
![]() | |
SensorInterface (ControlCenter *center) | |
virtual | ~SensorInterface () |
![]() | |
BaseSensor () | |
virtual | ~BaseSensor () |
BaseSensor (unsigned long id, std::string name) | |
unsigned long | getID () const |
const std::string | getName () const |
void | getCoreExchange (core_objects_exchange *obj) const |
![]() | |
ProducerInterface () | |
virtual | ~ProducerInterface () |
![]() | |
ReceiverInterface () | |
virtual | ~ReceiverInterface () |
Static Public Member Functions | |
static interfaces::BaseSensor * | instanciate (interfaces::ControlCenter *control, interfaces::BaseConfig *config) |
static interfaces::BaseConfig * | parseConfig (interfaces::ControlCenter *control, configmaps::ConfigMap *config) |
![]() | |
static BaseConfig * | parseConfig (ControlCenter *control, configmaps::ConfigMap *config) |
Private Attributes | |
Joint6DOFConfig | config |
joint6DOFData | sensor_data |
unsigned long | jointPackageId |
unsigned long | nodePackageId |
long | nodeRotIndices [4] |
long | jointForceIndices [3] |
long | jointTorqueIndices [3] |
data_broker::DataPackage | dbPackage |
unsigned long | dbPushId |
Additional Inherited Members | |
![]() | |
unsigned long | id |
std::string | name |
unsigned long | updateRate |
![]() | |
ControlCenter * | control |
Definition at line 61 of file Joint6DOFSensor.h.
mars::sim::Joint6DOFSensor::Joint6DOFSensor | ( | interfaces::ControlCenter * | control, |
Joint6DOFConfig | config | ||
) |
Definition at line 59 of file Joint6DOFSensor.cpp.
mars::sim::Joint6DOFSensor::~Joint6DOFSensor | ( | void | ) |
Definition at line 115 of file Joint6DOFSensor.cpp.
|
virtual |
Reimplemented from mars::interfaces::BaseSensor.
Definition at line 250 of file Joint6DOFSensor.cpp.
void mars::sim::Joint6DOFSensor::getAnchor | ( | utils::Vector * | anchor | ) |
Definition at line 159 of file Joint6DOFSensor.cpp.
|
virtual |
Reimplemented from mars::interfaces::BaseSensor.
Definition at line 123 of file Joint6DOFSensor.cpp.
void mars::sim::Joint6DOFSensor::getBodyQ | ( | utils::Quaternion * | body_q | ) |
Definition at line 162 of file Joint6DOFSensor.cpp.
void mars::sim::Joint6DOFSensor::getForceData | ( | utils::Vector * | force | ) |
Definition at line 153 of file Joint6DOFSensor.cpp.
|
virtual |
Reimplemented from mars::interfaces::BaseSensor.
Definition at line 138 of file Joint6DOFSensor.cpp.
void mars::sim::Joint6DOFSensor::getTorqueData | ( | utils::Vector * | torque | ) |
Definition at line 156 of file Joint6DOFSensor.cpp.
|
static |
Definition at line 49 of file Joint6DOFSensor.cpp.
|
static |
Definition at line 227 of file Joint6DOFSensor.cpp.
|
virtual |
Implements mars::data_broker::ProducerInterface.
Definition at line 167 of file Joint6DOFSensor.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 183 of file Joint6DOFSensor.cpp.
|
private |
Definition at line 94 of file Joint6DOFSensor.h.
|
private |
Definition at line 100 of file Joint6DOFSensor.h.
|
private |
Definition at line 101 of file Joint6DOFSensor.h.
|
private |
Definition at line 98 of file Joint6DOFSensor.h.
|
private |
Definition at line 96 of file Joint6DOFSensor.h.
|
private |
Definition at line 99 of file Joint6DOFSensor.h.
|
private |
Definition at line 96 of file Joint6DOFSensor.h.
|
private |
Definition at line 97 of file Joint6DOFSensor.h.
|
private |
Definition at line 95 of file Joint6DOFSensor.h.