33 #ifndef DART_DYNAMICS_BOXSHAPE_HPP_ 34 #define DART_DYNAMICS_BOXSHAPE_HPP_ 36 #include "dart/dynamics/Shape.hpp" 45 explicit BoxShape(
const Eigen::Vector3d& _size);
51 const std::string&
getType()
const override;
57 void setSize(
const Eigen::Vector3d& _size);
60 const Eigen::Vector3d&
getSize()
const;
67 const Eigen::Vector3d& size,
double mass);
81 Eigen::Vector3d mSize;
87 #endif // DART_DYNAMICS_BOXSHAPE_HPP_ const std::string & getType() const override
Returns a string representing the shape type.
Definition: BoxShape.cpp:54
virtual ~BoxShape()
Destructor.
Definition: BoxShape.cpp:48
void updateVolume() const override
Updates volume.
Definition: BoxShape.cpp:119
static Eigen::Matrix3d computeInertia(const Eigen::Vector3d &size, double mass)
Compute moments of inertia of a box.
Definition: BoxShape.cpp:73
const Eigen::Vector3d & getSize() const
Get size of this box.
Definition: BoxShape.cpp:99
Definition: Aspect.cpp:40
void setSize(const Eigen::Vector3d &_size)
Set size of this box.
Definition: BoxShape.cpp:86
void updateBoundingBox() const override
Updates bounding box.
Definition: BoxShape.cpp:111
BoxShape(const Eigen::Vector3d &_size)
Constructor.
Definition: BoxShape.cpp:40
static double computeVolume(const Eigen::Vector3d &size)
Compute volume from given properties.
Definition: BoxShape.cpp:67
static const std::string & getStaticType()
Returns shape type for this class.
Definition: BoxShape.cpp:60
Definition: BoxShape.hpp:41