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

#include <JointArraySensor.h>

Public Member Functions

 JointArraySensor (interfaces::ControlCenter *control, IDListConfig config, bool initArray=true)
 
virtual ~JointArraySensor (void)
 
virtual int getAsciiData (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...
 
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::ReceiverInterface
 ReceiverInterface ()
 
virtual ~ReceiverInterface ()
 

Static Public Member Functions

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)
 

Protected Attributes

std::string typeName
 
int countIDs
 
std::vector< double > doubleArray
 
- Protected Attributes inherited from mars::interfaces::SensorInterface
ControlCentercontrol
 

Private Attributes

IDListConfig config
 

Additional Inherited Members

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

Detailed Description

Definition at line 46 of file JointArraySensor.h.

Constructor & Destructor Documentation

◆ JointArraySensor()

mars::sim::JointArraySensor::JointArraySensor ( interfaces::ControlCenter control,
IDListConfig  config,
bool  initArray = true 
)

Definition at line 70 of file JointArraySensor.cpp.

◆ ~JointArraySensor()

mars::sim::JointArraySensor::~JointArraySensor ( void  )
virtual

Definition at line 91 of file JointArraySensor.cpp.

Member Function Documentation

◆ createConfig()

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

Reimplemented from mars::interfaces::BaseSensor.

Definition at line 53 of file JointArraySensor.cpp.

◆ getAsciiData()

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

◆ getSensorData()

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

Reimplemented from mars::interfaces::BaseSensor.

Reimplemented in mars::sim::JointAVGTorqueSensor, and mars::sim::JointLoadSensor.

Definition at line 112 of file JointArraySensor.cpp.

◆ parseConfig()

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

Definition at line 46 of file JointArraySensor.cpp.

◆ receiveData()

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

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.

Reimplemented in mars::sim::JointAVGTorqueSensor, mars::sim::JointLoadSensor, mars::sim::JointTorqueSensor, mars::sim::JointVelocitySensor, and mars::sim::JointPositionSensor.

Definition at line 56 of file JointArraySensor.h.

Member Data Documentation

◆ config

IDListConfig mars::sim::JointArraySensor::config
private

Definition at line 70 of file JointArraySensor.h.

◆ countIDs

int mars::sim::JointArraySensor::countIDs
protected

Definition at line 66 of file JointArraySensor.h.

◆ doubleArray

std::vector<double> mars::sim::JointArraySensor::doubleArray
protected

Definition at line 67 of file JointArraySensor.h.

◆ typeName

std::string mars::sim::JointArraySensor::typeName
protected

Definition at line 65 of file JointArraySensor.h.


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