33 #ifndef DART_DYNAMICS_CYLINDERSHAPE_HPP_ 34 #define DART_DYNAMICS_CYLINDERSHAPE_HPP_ 36 #include "dart/dynamics/Shape.hpp" 48 const std::string&
getType()
const override;
54 double getRadius()
const;
57 void setRadius(
double _radius);
60 double getHeight()
const;
63 void setHeight(
double _height);
70 double radius,
double height,
double mass);
93 #endif // DART_DYNAMICS_CYLINDERSHAPE_HPP_ void updateBoundingBox() const override
Updates bounding box.
Definition: CylinderShape.cpp:117
static double computeVolume(double radius, double height)
Compute volume from given properties.
Definition: CylinderShape.cpp:97
Definition: Aspect.cpp:40
static Eigen::Matrix3d computeInertia(double radius, double height, double mass)
Compute moments of inertia of a cylinder.
Definition: CylinderShape.cpp:103
CylinderShape(double _radius, double _height)
Constructor.
Definition: CylinderShape.cpp:42
const std::string & getType() const override
Returns a string representing the shape type.
Definition: CylinderShape.cpp:50
static const std::string & getStaticType()
Returns shape type for this class.
Definition: CylinderShape.cpp:56
Definition: CylinderShape.hpp:41
void updateVolume() const override
Updates volume.
Definition: CylinderShape.cpp:125