Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
gazebo::ConversionFunctionLinearInterp Class Reference

Conversion using linear interpolation between given data points. More...

#include <ThrusterConversionFcn.hh>

Inheritance diagram for gazebo::ConversionFunctionLinearInterp:
Inheritance graph
[legend]

Public Member Functions

virtual double convert (double _cmd)
 Convert thruster state (e.g. angular velocity) to thrust force. More...
 
virtual bool GetParam (std::string _tag, double &_output)
 Return paramater in scalar form for the given tag. More...
 
virtual std::map< double, double > GetTable ()
 Return input and output vectors of the lookup table. More...
 
virtual std::string GetType ()
 Return (derived) type of conversion function. More...
 
- Public Member Functions inherited from gazebo::ConversionFunction
virtual ~ConversionFunction ()
 Destructor. More...
 

Static Public Member Functions

static ConversionFunctioncreate (sdf::ElementPtr _sdf)
 Create a ConversionFunction object according to its sdf Description. More...
 

Private Member Functions

 ConversionFunctionLinearInterp (const std::vector< double > &_input, const std::vector< double > &_output)
 Constructor. More...
 
 REGISTER_CONVERSIONFUNCTION (ConversionFunctionLinearInterp)
 Register this conversion function with the factory. More...
 

Private Attributes

std::map< double, double > lookupTable
 Lookup table maps input values -> output values. More...
 

Static Private Attributes

static const std::string IDENTIFIER = "LinearInterp"
 The unique identifier of this conversion function. More...
 

Additional Inherited Members

- Protected Member Functions inherited from gazebo::ConversionFunction
 ConversionFunction ()
 Protected constructor: Use the factory instead. More...
 

Detailed Description

Conversion using linear interpolation between given data points.

Definition at line 160 of file ThrusterConversionFcn.hh.

Constructor & Destructor Documentation

gazebo::ConversionFunctionLinearInterp::ConversionFunctionLinearInterp ( const std::vector< double > &  _input,
const std::vector< double > &  _output 
)
private

Constructor.

Definition at line 300 of file ThrusterConversionFcn.cc.

Member Function Documentation

double gazebo::ConversionFunctionLinearInterp::convert ( double  _cmd)
virtual

Convert thruster state (e.g. angular velocity) to thrust force.

Implements gazebo::ConversionFunction.

Definition at line 268 of file ThrusterConversionFcn.cc.

static ConversionFunction* gazebo::ConversionFunctionLinearInterp::create ( sdf::ElementPtr  _sdf)
static

Create a ConversionFunction object according to its sdf Description.

bool gazebo::ConversionFunctionLinearInterp::GetParam ( std::string  _tag,
double &  _output 
)
virtual

Return paramater in scalar form for the given tag.

Implements gazebo::ConversionFunction.

Definition at line 323 of file ThrusterConversionFcn.cc.

std::map< double, double > gazebo::ConversionFunctionLinearInterp::GetTable ( )
virtual

Return input and output vectors of the lookup table.

Reimplemented from gazebo::ConversionFunction.

Definition at line 329 of file ThrusterConversionFcn.cc.

virtual std::string gazebo::ConversionFunctionLinearInterp::GetType ( )
inlinevirtual

Return (derived) type of conversion function.

Implements gazebo::ConversionFunction.

Definition at line 166 of file ThrusterConversionFcn.hh.

gazebo::ConversionFunctionLinearInterp::REGISTER_CONVERSIONFUNCTION ( ConversionFunctionLinearInterp  )
private

Register this conversion function with the factory.

Member Data Documentation

const std::string gazebo::ConversionFunctionLinearInterp::IDENTIFIER = "LinearInterp"
staticprivate

The unique identifier of this conversion function.

Definition at line 181 of file ThrusterConversionFcn.hh.

std::map<double, double> gazebo::ConversionFunctionLinearInterp::lookupTable
private

Lookup table maps input values -> output values.

Definition at line 188 of file ThrusterConversionFcn.hh.


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


uuv_gazebo_plugins
Author(s): Musa Morena Marcusso Manhaes , Sebastian Scherer , Luiz Ricardo Douat
autogenerated on Mon Jul 1 2019 19:39:12