33 #ifndef DART_DYNAMICS_CYLINDERSHAPE_HPP_
34 #define DART_DYNAMICS_CYLINDERSHAPE_HPP_
48 const std::string&
getType()
const override;
70 double radius,
double height,
double mass);
Definition: CylinderShape.hpp:42
static const std::string & getStaticType()
Returns shape type for this class.
Definition: CylinderShape.cpp:56
void updateVolume() const override
Updates volume.
Definition: CylinderShape.cpp:125
void setRadius(double _radius)
Definition: CylinderShape.cpp:69
static double computeVolume(double radius, double height)
Compute volume from given properties.
Definition: CylinderShape.cpp:97
double getRadius() const
Definition: CylinderShape.cpp:63
void setHeight(double _height)
Definition: CylinderShape.cpp:86
CylinderShape(double _radius, double _height)
Constructor.
Definition: CylinderShape.cpp:42
double getHeight() const
Definition: CylinderShape.cpp:80
double mRadius
Definition: CylinderShape.hpp:84
double mHeight
Height along z-axis.
Definition: CylinderShape.hpp:87
const std::string & getType() const override
Returns a string representing the shape type.
Definition: CylinderShape.cpp:50
static Eigen::Matrix3d computeInertia(double radius, double height, double mass)
Compute moments of inertia of a cylinder.
Definition: CylinderShape.cpp:103
void updateBoundingBox() const override
Updates bounding box.
Definition: CylinderShape.cpp:117
Definition: BulletCollisionDetector.cpp:65