33 #ifndef DART_DYNAMICS_CAPSULESHAPE_HPP_
34 #define DART_DYNAMICS_CAPSULESHAPE_HPP_
53 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:145
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:60
static Eigen::Matrix3d computeInertia(double radius, double height, double mass)
Compute moments of inertia of a capsule.
Definition: CapsuleShape.cpp:108
const std::string & getType() const override
Returns a string representing the shape type.
Definition: CapsuleShape.cpp:54
double getHeight() const
Get the height of the cylindrical part.
Definition: CapsuleShape.cpp:84
double getRadius() const
Get the radius of the capsule.
Definition: CapsuleShape.cpp:67
void setRadius(double radius)
Set the radius of the capsule.
Definition: CapsuleShape.cpp:73
static double computeVolume(double radius, double height)
Compute volume from given properties.
Definition: CapsuleShape.cpp:101
double mRadius
Radius of the capsule.
Definition: CapsuleShape.hpp:93
void setHeight(double height)
Set the height of the cylindrical part.
Definition: CapsuleShape.cpp:90
CapsuleShape(double radius, double height)
Constructor.
Definition: CapsuleShape.cpp:44
void updateBoundingBox() const override
Updates bounding box.
Definition: CapsuleShape.cpp:134
Definition: BulletCollisionDetector.cpp:63