Conversion using linear interpolation between given data points. More...
#include <ThrusterConversionFcn.hh>
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 ConversionFunction * | create (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... | |
Conversion using linear interpolation between given data points.
Definition at line 160 of file ThrusterConversionFcn.hh.
|
private |
Constructor.
Definition at line 300 of file ThrusterConversionFcn.cc.
|
virtual |
Convert thruster state (e.g. angular velocity) to thrust force.
Implements gazebo::ConversionFunction.
Definition at line 268 of file ThrusterConversionFcn.cc.
|
static |
Create a ConversionFunction object according to its sdf Description.
|
virtual |
Return paramater in scalar form for the given tag.
Implements gazebo::ConversionFunction.
Definition at line 323 of file ThrusterConversionFcn.cc.
|
virtual |
Return input and output vectors of the lookup table.
Reimplemented from gazebo::ConversionFunction.
Definition at line 329 of file ThrusterConversionFcn.cc.
|
inlinevirtual |
Return (derived) type of conversion function.
Implements gazebo::ConversionFunction.
Definition at line 166 of file ThrusterConversionFcn.hh.
|
private |
Register this conversion function with the factory.
|
staticprivate |
The unique identifier of this conversion function.
Definition at line 181 of file ThrusterConversionFcn.hh.
|
private |
Lookup table maps input values -> output values.
Definition at line 188 of file ThrusterConversionFcn.hh.