Skip to content

HMCylinder

class gazebo::HMCylinder

class gazebo::HMCylinder
  : public gazebo::HMFossen

Class containing the methods and attributes for a hydrodynamic model for a cylinder in the fluid.

Summary
Members Descriptions
public inline virtual std::stringGetType() Return (derived) type of hydrodynamic model.
public virtual voidPrint(std::string _paramName,std::string _message) Prints parameters.
protected doublelength Length of the cylinder.
protected doubleradius Sphere radius.
protected std::stringaxis Name of the unit rotation axis (just a tag for x, y or z)
protected doubledimRatio Ratio between length and diameter.
protected doublecdCirc Approximated drag coefficient for the circular area.
protected doublecdLength Approximated drag coefficient for the rectangular section.
protectedHMCylinder(sdf::ElementPtr _sdf,physics::LinkPtr _link)
Members
public inline virtual std::stringGetType()

Return (derived) type of hydrodynamic model.

public virtual voidPrint(std::string _paramName,std::string _message)

Prints parameters.

protected doublelength

Length of the cylinder.

protected doubleradius

Sphere radius.

protected std::stringaxis

Name of the unit rotation axis (just a tag for x, y or z)

protected doubledimRatio

Ratio between length and diameter.

protected doublecdCirc

Approximated drag coefficient for the circular area.

protected doublecdLength

Approximated drag coefficient for the rectangular section.