33 #ifndef DART_DYNAMICS_MULTISPHERECONVEXHULLSHAPE_HPP_
34 #define DART_DYNAMICS_MULTISPHERECONVEXHULLSHAPE_HPP_
48 using Sphere = std::pair<double, Eigen::Vector3d>;
58 const std::string&
getType()
const override;
#define DART_DEPRECATED(version)
Definition: Deprecated.hpp:51
Eigen::VectorXd position
Definition: SkelParser.cpp:107
MultiSphereConvexHullShape represents the convex hull of a collection of spheres.
Definition: MultiSphereConvexHullShape.hpp:45
Eigen::Matrix3d computeInertia(double mass) const override
Compute the inertia of this MultiSphereConvexHullShape.
Definition: MultiSphereConvexHullShape.cpp:120
MultiSphereConvexHullShape(const Spheres &spheres)
Constructor.
Definition: MultiSphereConvexHullShape.cpp:43
std::vector< Sphere > Spheres
Definition: MultiSphereConvexHullShape.hpp:49
void addSphere(const Sphere &sphere)
Add a sphere.
Definition: MultiSphereConvexHullShape.cpp:80
void updateVolume() const override
Update the volume of this MultiSphereConvexHullShape.
Definition: MultiSphereConvexHullShape.cpp:150
std::size_t getNumSpheres() const
Get the number of spheres.
Definition: MultiSphereConvexHullShape.cpp:108
virtual ~MultiSphereConvexHullShape()
Destructor.
Definition: MultiSphereConvexHullShape.cpp:50
std::pair< double, Eigen::Vector3d > Sphere
Definition: MultiSphereConvexHullShape.hpp:48
void addSpheres(const Spheres &spheres)
Add a list of spheres.
Definition: MultiSphereConvexHullShape.cpp:69
void updateBoundingBox() const override
Updates bounding box.
Definition: MultiSphereConvexHullShape.cpp:127
const Spheres & getSpheres() const
Get the set of spheres.
Definition: MultiSphereConvexHullShape.cpp:114
Spheres mSpheres
Spheres.
Definition: MultiSphereConvexHullShape.hpp:99
static const std::string & getStaticType()
Returns shape type for this class.
Definition: MultiSphereConvexHullShape.cpp:62
void removeAllSpheres()
Remove all spheres.
Definition: MultiSphereConvexHullShape.cpp:97
const std::string & getType() const override
Returns a string representing the shape type.
Definition: MultiSphereConvexHullShape.cpp:56
Definition: BulletCollisionDetector.cpp:63