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:108
MultiSphereConvexHullShape represents the convex hull of a collection of spheres.
Definition: MultiSphereConvexHullShape.hpp:46
Eigen::Matrix3d computeInertia(double mass) const override
Compute the inertia of this MultiSphereConvexHullShape.
Definition: MultiSphereConvexHullShape.cpp:124
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:81
void updateVolume() const override
Update the volume of this MultiSphereConvexHullShape.
Definition: MultiSphereConvexHullShape.cpp:154
std::size_t getNumSpheres() const
Get the number of spheres.
Definition: MultiSphereConvexHullShape.cpp:111
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:131
const Spheres & getSpheres() const
Get the set of spheres.
Definition: MultiSphereConvexHullShape.cpp:118
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:100
const std::string & getType() const override
Returns a string representing the shape type.
Definition: MultiSphereConvexHullShape.cpp:56
Definition: BulletCollisionDetector.cpp:65