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

Lift&drag model that models lift/drag coeffs using two lines. This is based on Gazebo's LiftDragPlugin but implemented as a derived LiftDrag model to allow using it in combination with the dynamics of a Fin. More...

#include <LiftDragModel.hh>

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

Public Member Functions

virtual ignition::math::Vector3d compute (const ignition::math::Vector3d &_velL)
 Compute the lift and drag force. More...
 
virtual std::map< std::string, double > GetListParams ()
 Return list of all parameters. More...
 
virtual bool GetParam (std::string _tag, double &_output)
 Return paramater in scalar form for the given tag. More...
 
virtual std::string GetType ()
 Return (derived) type of dynamic system. More...
 
- Public Member Functions inherited from gazebo::LiftDrag
virtual ~LiftDrag ()
 Destructor. More...
 

Static Public Member Functions

static LiftDragcreate (sdf::ElementPtr _sdf)
 Create thruster model of this type with parameter values from sdf. More...
 
- Static Public Member Functions inherited from gazebo::LiftDrag
static bool CheckForElement (sdf::ElementPtr _sdf, const std::string &element)
 Check for element. Complain and return 0 if it is missing. More...
 

Protected Attributes

double a0
 Original zero angle of attack location. More...
 
double alphaStall
 Stall angle. More...
 
double area
 Airfoil area. More...
 
double cda
 Drag coefficient without stall. More...
 
double cdaStall
 Drag coefficient with stall. More...
 
double cla
 Lift coefficient without stall. More...
 
double claStall
 Lift coefficient with stall. More...
 
double fluidDensity
 Fluid density. More...
 
- Protected Attributes inherited from gazebo::LiftDrag
double prevTime
 Time of last state update. More...
 
double state
 Latest state. More...
 

Private Member Functions

 LiftDragTwoLines (double _area, double _fluidDensity, double _a0, double _alphaStall, double _cla, double _claStall, double _cda, double _cdaStall)
 Constructor. More...
 
 REGISTER_LIFTDRAG (LiftDragTwoLines)
 Register this model with the factory. More...
 

Static Private Attributes

static const std::string IDENTIFIER = "TwoLines"
 Unique identifier for this dynamical model. More...
 

Additional Inherited Members

- Protected Member Functions inherited from gazebo::LiftDrag
 LiftDrag ()
 Protected constructor: Use the factory for object creation. More...
 

Detailed Description

Lift&drag model that models lift/drag coeffs using two lines. This is based on Gazebo's LiftDragPlugin but implemented as a derived LiftDrag model to allow using it in combination with the dynamics of a Fin.

Definition at line 138 of file LiftDragModel.hh.

Constructor & Destructor Documentation

gazebo::LiftDragTwoLines::LiftDragTwoLines ( double  _area,
double  _fluidDensity,
double  _a0,
double  _alphaStall,
double  _cla,
double  _claStall,
double  _cda,
double  _cdaStall 
)
inlineprivate

Constructor.

Definition at line 186 of file LiftDragModel.hh.

Member Function Documentation

ignition::math::Vector3d gazebo::LiftDragTwoLines::compute ( const ignition::math::Vector3d &  _velL)
virtual

Compute the lift and drag force.

Implements gazebo::LiftDrag.

Definition at line 197 of file LiftDragModel.cc.

static LiftDrag* gazebo::LiftDragTwoLines::create ( sdf::ElementPtr  _sdf)
static

Create thruster model of this type with parameter values from sdf.

std::map< std::string, double > gazebo::LiftDragTwoLines::GetListParams ( )
virtual

Return list of all parameters.

Implements gazebo::LiftDrag.

Definition at line 298 of file LiftDragModel.cc.

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

Return paramater in scalar form for the given tag.

Implements gazebo::LiftDrag.

Definition at line 270 of file LiftDragModel.cc.

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

Return (derived) type of dynamic system.

Implements gazebo::LiftDrag.

Definition at line 144 of file LiftDragModel.hh.

gazebo::LiftDragTwoLines::REGISTER_LIFTDRAG ( LiftDragTwoLines  )
private

Register this model with the factory.

Member Data Documentation

double gazebo::LiftDragTwoLines::a0
protected

Original zero angle of attack location.

Definition at line 168 of file LiftDragModel.hh.

double gazebo::LiftDragTwoLines::alphaStall
protected

Stall angle.

Definition at line 171 of file LiftDragModel.hh.

double gazebo::LiftDragTwoLines::area
protected

Airfoil area.

Definition at line 162 of file LiftDragModel.hh.

double gazebo::LiftDragTwoLines::cda
protected

Drag coefficient without stall.

Definition at line 180 of file LiftDragModel.hh.

double gazebo::LiftDragTwoLines::cdaStall
protected

Drag coefficient with stall.

Definition at line 183 of file LiftDragModel.hh.

double gazebo::LiftDragTwoLines::cla
protected

Lift coefficient without stall.

Definition at line 174 of file LiftDragModel.hh.

double gazebo::LiftDragTwoLines::claStall
protected

Lift coefficient with stall.

Definition at line 177 of file LiftDragModel.hh.

double gazebo::LiftDragTwoLines::fluidDensity
protected

Fluid density.

Definition at line 165 of file LiftDragModel.hh.

const std::string gazebo::LiftDragTwoLines::IDENTIFIER = "TwoLines"
staticprivate

Unique identifier for this dynamical model.

Definition at line 153 of file LiftDragModel.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