Public Member Functions | Public Attributes | Private Attributes | List of all members
buoyancy::BoxVolume Struct Reference

Box shape volume. More...

#include <shape_volume.hh>

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

Public Member Functions

 BoxVolume (double x, double y, double z)
 Default constructor. More...
 
Volume CalculateVolume (const ignition::math::Pose3d &pose, double fluidLevel) override
 Calculates volume + centroid of submerged shape if the shape is out of water returns Volume{}. More...
 
std::string Display () override
 Display string for box shape. More...
 
- Public Member Functions inherited from buoyancy::ShapeVolume
virtual ~ShapeVolume ()=default
 Default destructor. More...
 

Public Attributes

double x
 Length. More...
 
double y
 Width. More...
 
double z
 Height. More...
 
- Public Attributes inherited from buoyancy::ShapeVolume
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...
 

Private Attributes

Polyhedron polyhedron
 Polyhedron defining a box. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from buoyancy::ShapeVolume
static std::unique_ptr< ShapeVolumemakeShape (const sdf::ElementPtr sdf)
 Factory method for shape. Parses a shape object from sdf data. More...
 

Detailed Description

Box shape volume.

Definition at line 73 of file shape_volume.hh.

Constructor & Destructor Documentation

BoxVolume::BoxVolume ( double  x,
double  y,
double  z 
)
explicit

Default constructor.

Parameters
xlength
ywidth
zheight

Definition at line 119 of file shape_volume.cc.

Member Function Documentation

Volume BoxVolume::CalculateVolume ( const ignition::math::Pose3d &  pose,
double  fluidLevel 
)
overridevirtual

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)

Implements buoyancy::ShapeVolume.

Definition at line 139 of file shape_volume.cc.

std::string BoxVolume::Display ( )
overridevirtual

Display string for box shape.

Reimplemented from buoyancy::ShapeVolume.

Definition at line 131 of file shape_volume.cc.

Member Data Documentation

Polyhedron buoyancy::BoxVolume::polyhedron
private

Polyhedron defining a box.

Definition at line 99 of file shape_volume.hh.

double buoyancy::BoxVolume::x

Length.

Definition at line 89 of file shape_volume.hh.

double buoyancy::BoxVolume::y

Width.

Definition at line 92 of file shape_volume.hh.

double buoyancy::BoxVolume::z

Height.

Definition at line 95 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