HydrodynamicModel
class gazebo::HydrodynamicModel
¶
class gazebo::HydrodynamicModel : public gazebo::BuoyantObject
Summary¶
Members | Descriptions |
---|---|
public std::string GetType () |
Returns type of model. |
public void ApplyHydrodynamicForces (double time,const ignition::math::Vector3d & _flowVelWorld) |
Computation of the hydrodynamic forces. |
public void Print (std::string _paramName,std::string _message) |
Prints parameters. |
public bool GetParam (std::string _tag,std::vector< double > & _output) |
Return paramater in vector form for the given tag. |
public bool GetParam (std::string _tag,double & _output) |
Return paramater in vector form for the given tag. |
public bool SetParam (std::string _tag,double _input) |
Set a scalar parameters. |
protected Eigen::Vector6d
filteredAcc |
Filtered linear & angular acceleration vector in link frame. This is used to prevent the model to become unstable given that Gazebo only calls the update function at the beginning or at the end of a iteration of the physics engine. |
protected double lastTime |
Last timestamp (in seconds) at which ApplyHydrodynamicForces was called. |
protected Eigen::Vector6d
lastVelRel |
Last body-fixed relative velocity (nu_R in Fossen's equations) |
protected std::vector< std::string > params |
List of parameters needed from the SDF element. |
protected double Re |
Reynolds number (not used by all models) |
protected double temperature |
Temperature (not used by all models) |
protected HydrodynamicModel (sdf::ElementPtr _sdf,physics::LinkPtr _link) |
Protected constructor: Use the factory for object creation. |
protected void ComputeAcc ( Eigen::Vector6d _velRel,double _time,double _alpha) |
Filter acceleration (fix due to the update structure of Gazebo) |
protected bool CheckParams (sdf::ElementPtr _sdf) |
Returns true if all parameters are available from the SDF element. |
protected ignition::math::Vector3d ToNED (ignition::math::Vector3d _vec) |
Convert vector to comply with the NED reference frame. |
protected ignition::math::Vector3d FromNED (ignition::math::Vector3d _vec) |
Convert vector to comply with the NED reference frame. |
Members¶
public std::string
GetType
()
¶
Returns type of model.
public void
ApplyHydrodynamicForces
(double time,const ignition::math::Vector3d & _flowVelWorld)
¶
Computation of the hydrodynamic forces.
public void
Print
(std::string _paramName,std::string _message)
¶
Prints parameters.
public bool
GetParam
(std::string _tag,std::vector< double > & _output)
¶
Return paramater in vector form for the given tag.
public bool
GetParam
(std::string _tag,double & _output)
¶
Return paramater in vector form for the given tag.
public bool
SetParam
(std::string _tag,double _input)
¶
Set a scalar parameters.
protected
Eigen::Vector6d
filteredAcc
¶
Filtered linear & angular acceleration vector in link frame. This is used to prevent the model to become unstable given that Gazebo only calls the update function at the beginning or at the end of a iteration of the physics engine.
protected double
lastTime
¶
Last timestamp (in seconds) at which ApplyHydrodynamicForces was called.
protected
Eigen::Vector6d
lastVelRel
¶
Last body-fixed relative velocity (nu_R in Fossen's equations)
protected std::vector< std::string >
params
¶
List of parameters needed from the SDF element.
protected double
Re
¶
Reynolds number (not used by all models)
protected double
temperature
¶
Temperature (not used by all models)
protected
HydrodynamicModel
(sdf::ElementPtr _sdf,physics::LinkPtr _link)
¶
Protected constructor: Use the factory for object creation.
protected void
ComputeAcc
(
Eigen::Vector6d
_velRel,double _time,double _alpha)
¶
Filter acceleration (fix due to the update structure of Gazebo)
protected bool
CheckParams
(sdf::ElementPtr _sdf)
¶
Returns true if all parameters are available from the SDF element.
protected ignition::math::Vector3d
ToNED
(ignition::math::Vector3d _vec)
¶
Convert vector to comply with the NED reference frame.
protected ignition::math::Vector3d
FromNED
(ignition::math::Vector3d _vec)
¶
Convert vector to comply with the NED reference frame.