delphyne
IgnToDrake< IGN_TYPE, DRAKE_TYPE > Class Template Referenceabstract

Detailed Description

template<class IGN_TYPE, class DRAKE_TYPE>
class delphyne::IgnToDrake< IGN_TYPE, DRAKE_TYPE >

A system that translates ignition messages on its single abstract input port to a Drake message on its single output port (which will be vector based or abstract depending on the type of the Drake message).

This is a base class that provides the input-output port boilerplate and helper translator functions: derived classes need to implement the actual translation.

Template Parameters
IGN_TYPEmust be a valid ignition message type.
DRAKE_TYPEmust be a valid Drake message type.

#include <src/translations/ign_to_drake.h>

Inheritance diagram for IgnToDrake< IGN_TYPE, DRAKE_TYPE >:
[legend]

Public Member Functions

 IgnToDrake ()
 

Protected Member Functions

virtual void DoIgnToDrakeTranslation (const IGN_TYPE &ign_message, DRAKE_TYPE *drake_message) const =0
 

Static Protected Member Functions

static std::vector< float > IgnPositionToVector (const ignition::msgs::Vector3d &position)
 
static std::vector< float > IgnQuaternionToVector (const ignition::msgs::Quaternion &orientation)
 

Constructor & Destructor Documentation

◆ IgnToDrake()

Member Function Documentation

◆ DoIgnToDrakeTranslation()

virtual void DoIgnToDrakeTranslation ( const IGN_TYPE &  ign_message,
DRAKE_TYPE *  drake_message 
) const
protectedpure virtual

◆ IgnPositionToVector()

static std::vector<float> IgnPositionToVector ( const ignition::msgs::Vector3d &  position)
staticprotected

◆ IgnQuaternionToVector()

static std::vector<float> IgnQuaternionToVector ( const ignition::msgs::Quaternion orientation)
staticprotected

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