cisst-saw
Loading...
Searching...
No Matches
prmInputDataConverter Class Reference

#include <prmInputDataConverter.h>

Public Member Functions

 prmInputDataConverter (mtsComponent &component)
bool AddProvidedButton (const std::string &interfaceName, const int &indexInput)
bool Update (const prmInputData &inputData)

Protected Types

typedef std::list< prmInputDataConverterBase * > ConvertersType

Protected Member Functions

const cmnClassServicesBaseServices (void) const
cmnLogger::StreamBufTypeGetLogMultiplexer (void) const

Protected Attributes

mtsComponentmComponent
ConvertersType mConverters
const cmnClassServicesBasemComponentServices

Detailed Description

Class to create cisstMultiTask events/commands based on prmInputData. This can be used to convert inputs from an analog to digital converter or Linux joystick to cisstMultiTask prmEventButton. We could also add events with booleans or integers, and maybe converters that can take 3/6 values from joystick and convert to a cartesian position, orientation, velocity, twist or wrench.

Member Typedef Documentation

◆ ConvertersType

typedef std::list<prmInputDataConverterBase *> prmInputDataConverter::ConvertersType
protected

Constructor & Destructor Documentation

◆ prmInputDataConverter()

prmInputDataConverter::prmInputDataConverter ( mtsComponent & component)

Member Function Documentation

◆ AddProvidedButton()

bool prmInputDataConverter::AddProvidedButton ( const std::string & interfaceName,
const int & indexInput )

◆ GetLogMultiplexer()

cmnLogger::StreamBufType * prmInputDataConverter::GetLogMultiplexer ( void ) const
inlineprotected

◆ Services()

const cmnClassServicesBase * prmInputDataConverter::Services ( void ) const
inlineprotected

Methods use to emulate the cmnGenericObject interface used by CMN_LOG_CLASS macros.

◆ Update()

bool prmInputDataConverter::Update ( const prmInputData & inputData)

Tell converters to update based on the latest input data.

Member Data Documentation

◆ mComponent

mtsComponent& prmInputDataConverter::mComponent
protected

◆ mComponentServices

const cmnClassServicesBase* prmInputDataConverter::mComponentServices
protected

Pointer on existing services. This allows to use the class name and level of detail of the component using the prmInputDataConverter.

◆ mConverters

ConvertersType prmInputDataConverter::mConverters
protected

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