Privacy
An open-source, flexible 3D physical simulation framework
mars::sim::Joint6DOFSensor Class Reference

#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
 
- Public Member Functions inherited from mars::interfaces::SensorInterface
 SensorInterface (ControlCenter *center)
 
virtual ~SensorInterface ()
 
- Public Member Functions inherited from mars::interfaces::BaseSensor
 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
 
- Public Member Functions inherited from mars::data_broker::ProducerInterface
 ProducerInterface ()
 
virtual ~ProducerInterface ()
 
- Public Member Functions inherited from mars::data_broker::ReceiverInterface
 ReceiverInterface ()
 
virtual ~ReceiverInterface ()
 

Static Public Member Functions

static interfaces::BaseSensorinstanciate (interfaces::ControlCenter *control, interfaces::BaseConfig *config)
 
static interfaces::BaseConfigparseConfig (interfaces::ControlCenter *control, configmaps::ConfigMap *config)
 
- Static Public Member Functions inherited from mars::interfaces::BaseSensor
static BaseConfigparseConfig (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

- Public Attributes inherited from mars::interfaces::BaseSensor
unsigned long id
 
std::string name
 
unsigned long updateRate
 
- Protected Attributes inherited from mars::interfaces::SensorInterface
ControlCentercontrol
 

Detailed Description

Definition at line 61 of file Joint6DOFSensor.h.

Constructor & Destructor Documentation

◆ Joint6DOFSensor()

mars::sim::Joint6DOFSensor::Joint6DOFSensor ( interfaces::ControlCenter control,
Joint6DOFConfig  config 
)

Definition at line 59 of file Joint6DOFSensor.cpp.

◆ ~Joint6DOFSensor()

mars::sim::Joint6DOFSensor::~Joint6DOFSensor ( void  )

Definition at line 115 of file Joint6DOFSensor.cpp.

Member Function Documentation

◆ createConfig()

ConfigMap mars::sim::Joint6DOFSensor::createConfig ( ) const
virtual

Reimplemented from mars::interfaces::BaseSensor.

Definition at line 250 of file Joint6DOFSensor.cpp.

◆ getAnchor()

void mars::sim::Joint6DOFSensor::getAnchor ( utils::Vector anchor)

Definition at line 159 of file Joint6DOFSensor.cpp.

◆ getAsciiData()

int mars::sim::Joint6DOFSensor::getAsciiData ( char *  data) const
virtual

Reimplemented from mars::interfaces::BaseSensor.

Definition at line 123 of file Joint6DOFSensor.cpp.

◆ getBodyQ()

void mars::sim::Joint6DOFSensor::getBodyQ ( utils::Quaternion body_q)

Definition at line 162 of file Joint6DOFSensor.cpp.

◆ getForceData()

void mars::sim::Joint6DOFSensor::getForceData ( utils::Vector force)

Definition at line 153 of file Joint6DOFSensor.cpp.

◆ getSensorData()

int mars::sim::Joint6DOFSensor::getSensorData ( interfaces::sReal **  data) const
virtual

Reimplemented from mars::interfaces::BaseSensor.

Definition at line 138 of file Joint6DOFSensor.cpp.

◆ getTorqueData()

void mars::sim::Joint6DOFSensor::getTorqueData ( utils::Vector torque)

Definition at line 156 of file Joint6DOFSensor.cpp.

◆ instanciate()

BaseSensor * mars::sim::Joint6DOFSensor::instanciate ( interfaces::ControlCenter control,
interfaces::BaseConfig config 
)
static

Definition at line 49 of file Joint6DOFSensor.cpp.

◆ parseConfig()

BaseConfig * mars::sim::Joint6DOFSensor::parseConfig ( interfaces::ControlCenter control,
configmaps::ConfigMap config 
)
static

Definition at line 227 of file Joint6DOFSensor.cpp.

◆ produceData()

void mars::sim::Joint6DOFSensor::produceData ( const data_broker::DataInfo info,
data_broker::DataPackage package,
int  callbackParam 
)
virtual

Implements mars::data_broker::ProducerInterface.

Definition at line 167 of file Joint6DOFSensor.cpp.

◆ receiveData()

void mars::sim::Joint6DOFSensor::receiveData ( const data_broker::DataInfo info,
const data_broker::DataPackage dataPackage,
int  callbackParam 
)
virtual

The DataBroker will call this method to notify the receiver of whenever the condition for which the receiver registered occur.

Parameters
infoInformation about the DataPackage.
dataPackageThe DataPackage containing all the data.
callbackParamThe 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.

Member Data Documentation

◆ config

Joint6DOFConfig mars::sim::Joint6DOFSensor::config
private

Definition at line 94 of file Joint6DOFSensor.h.

◆ dbPackage

data_broker::DataPackage mars::sim::Joint6DOFSensor::dbPackage
private

Definition at line 100 of file Joint6DOFSensor.h.

◆ dbPushId

unsigned long mars::sim::Joint6DOFSensor::dbPushId
private

Definition at line 101 of file Joint6DOFSensor.h.

◆ jointForceIndices

long mars::sim::Joint6DOFSensor::jointForceIndices[3]
private

Definition at line 98 of file Joint6DOFSensor.h.

◆ jointPackageId

unsigned long mars::sim::Joint6DOFSensor::jointPackageId
private

Definition at line 96 of file Joint6DOFSensor.h.

◆ jointTorqueIndices

long mars::sim::Joint6DOFSensor::jointTorqueIndices[3]
private

Definition at line 99 of file Joint6DOFSensor.h.

◆ nodePackageId

unsigned long mars::sim::Joint6DOFSensor::nodePackageId
private

Definition at line 96 of file Joint6DOFSensor.h.

◆ nodeRotIndices

long mars::sim::Joint6DOFSensor::nodeRotIndices[4]
private

Definition at line 97 of file Joint6DOFSensor.h.

◆ sensor_data

joint6DOFData mars::sim::Joint6DOFSensor::sensor_data
private

Definition at line 95 of file Joint6DOFSensor.h.


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