33 #ifndef DART_DYNAMICS_CAPSULESHAPE_HPP_
34 #define DART_DYNAMICS_CAPSULESHAPE_HPP_
52 const std::string&
getType()
const override;
79 double radius,
double height,
double mass);
CapsuleShape represents a three-dimensional geometric shape consisting of a cylinder with hemispheric...
Definition: CapsuleShape.hpp:44
void updateVolume() const override
Updates volume.
Definition: CapsuleShape.cpp:146
double mHeight
Height of the cylindrical part.
Definition: CapsuleShape.hpp:96
static const std::string & getStaticType()
Get shape type string for this shape.
Definition: CapsuleShape.cpp:58
static Eigen::Matrix3d computeInertia(double radius, double height, double mass)
Compute moments of inertia of a capsule.
Definition: CapsuleShape.cpp:106
const std::string & getType() const override
Returns a string representing the shape type.
Definition: CapsuleShape.cpp:52
double getHeight() const
Get the height of the cylindrical part.
Definition: CapsuleShape.cpp:82
double getRadius() const
Get the radius of the capsule.
Definition: CapsuleShape.cpp:65
void setRadius(double radius)
Set the radius of the capsule.
Definition: CapsuleShape.cpp:71
static double computeVolume(double radius, double height)
Compute volume from given properties.
Definition: CapsuleShape.cpp:99
double mRadius
Radius of the capsule.
Definition: CapsuleShape.hpp:93
void setHeight(double height)
Set the height of the cylindrical part.
Definition: CapsuleShape.cpp:88
CapsuleShape(double radius, double height)
Constructor.
Definition: CapsuleShape.cpp:44
void updateBoundingBox() const override
Updates bounding box.
Definition: CapsuleShape.cpp:135
Definition: BulletCollisionDetector.cpp:65