Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
buoyancy::ShapeVolume Struct Referenceabstract

Parent shape object for volume objects. More...

#include <shape_volume.hh>

Inheritance diagram for buoyancy::ShapeVolume:
Inheritance graph
[legend]

Public Member Functions

virtual Volume CalculateVolume (const ignition::math::Pose3d &pose, double fluidLevel)=0
 Calculates volume + centroid of submerged shape if the shape is out of water returns Volume{}. More...
 
virtual std::string Display ()
 Display string for shape object. More...
 
virtual ~ShapeVolume ()=default
 Default destructor. More...
 

Static Public Member Functions

static std::unique_ptr< ShapeVolumemakeShape (const sdf::ElementPtr sdf)
 Factory method for shape. Parses a shape object from sdf data. More...
 

Public Attributes

double averageLength
 Average length of object estimate used for drag torque calculation. More...
 
ShapeType type
 Type of shape. More...
 
double volume
 Full volume of object. More...
 

Detailed Description

Parent shape object for volume objects.

Definition at line 40 of file shape_volume.hh.

Constructor & Destructor Documentation

virtual buoyancy::ShapeVolume::~ShapeVolume ( )
virtualdefault

Default destructor.

Member Function Documentation

virtual Volume buoyancy::ShapeVolume::CalculateVolume ( const ignition::math::Pose3d &  pose,
double  fluidLevel 
)
pure virtual

Calculates volume + centroid of submerged shape if the shape is out of water returns Volume{}.

Parameters
poseworld pose of volume
fluidLevelheight of fluid
Returns
volume object with volume + centroid (relative to world)

Implemented in buoyancy::SphereVolume, buoyancy::CylinderVolume, and buoyancy::BoxVolume.

std::string ShapeVolume::Display ( )
virtual

Display string for shape object.

Reimplemented in buoyancy::SphereVolume, buoyancy::CylinderVolume, and buoyancy::BoxVolume.

Definition at line 103 of file shape_volume.cc.

ShapeVolumePtr ShapeVolume::makeShape ( const sdf::ElementPtr  sdf)
static

Factory method for shape. Parses a shape object from sdf data.

Parameters
sdfgeometry SDF element

Definition at line 23 of file shape_volume.cc.

Member Data Documentation

double buoyancy::ShapeVolume::averageLength

Average length of object estimate used for drag torque calculation.

Definition at line 68 of file shape_volume.hh.

ShapeType buoyancy::ShapeVolume::type

Type of shape.

Definition at line 61 of file shape_volume.hh.

double buoyancy::ShapeVolume::volume

Full volume of object.

Definition at line 64 of file shape_volume.hh.


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


usv_gazebo_plugins
Author(s): Brian Bingham , Carlos Aguero
autogenerated on Thu May 7 2020 03:54:47