33 #ifndef DART_DYNAMICS_CAPSULESHAPE_HPP_ 34 #define DART_DYNAMICS_CAPSULESHAPE_HPP_ 36 #include "dart/dynamics/Shape.hpp" 52 const std::string&
getType()
const override;
79 double radius,
double height,
double mass);
102 #endif // DART_DYNAMICS_CAPSULESHAPE_HPP_ static const std::string & getStaticType()
Get shape type string for this shape.
Definition: CapsuleShape.cpp:58
void setHeight(double height)
Set the height of the cylindrical part.
Definition: CapsuleShape.cpp:88
Definition: Aspect.cpp:40
void updateBoundingBox() const override
Updates bounding box.
Definition: CapsuleShape.cpp:134
void updateVolume() const override
Updates volume.
Definition: CapsuleShape.cpp:145
CapsuleShape represents a three-dimensional geometric shape consisting of a cylinder with hemispheric...
Definition: CapsuleShape.hpp:43
double getHeight() const
Get the height of the cylindrical part.
Definition: CapsuleShape.cpp:82
const std::string & getType() const override
Returns a string representing the shape type.
Definition: CapsuleShape.cpp:52
static Eigen::Matrix3d computeInertia(double radius, double height, double mass)
Compute moments of inertia of a capsule.
Definition: CapsuleShape.cpp:106
CapsuleShape(double radius, double height)
Constructor.
Definition: CapsuleShape.cpp:44
void setRadius(double radius)
Set the radius of the capsule.
Definition: CapsuleShape.cpp:71
double getRadius() const
Get the radius of the capsule.
Definition: CapsuleShape.cpp:65
static double computeVolume(double radius, double height)
Compute volume from given properties.
Definition: CapsuleShape.cpp:99