33 #ifndef DART_CONSTRAINT_CONSTRAINEDGROUP_HPP_
34 #define DART_CONSTRAINT_CONSTRAINEDGROUP_HPP_
38 #include <Eigen/Dense>
48 namespace constraint {
50 struct ConstraintInfo;
52 class ConstraintSolver;
ConstrainedGroup is a group of skeletons that interact each other with constraints.
Definition: ConstrainedGroup.hpp:58
void removeAllConstraints()
Remove all constraints.
Definition: ConstrainedGroup.cpp:100
void addConstraint(const ConstraintBasePtr &_constraint)
Add constraint.
Definition: ConstrainedGroup.cpp:57
virtual ~ConstrainedGroup()
Destructor.
Definition: ConstrainedGroup.cpp:52
std::size_t getTotalDimension() const
Get total dimension of contraints in this group.
Definition: ConstrainedGroup.cpp:116
void removeConstraint(const ConstraintBasePtr &_constraint)
Remove constraint.
Definition: ConstrainedGroup.cpp:88
ConstrainedGroup()
Default contructor.
Definition: ConstrainedGroup.cpp:47
std::shared_ptr< dynamics::Skeleton > mRootSkeleton
Definition: ConstrainedGroup.hpp:111
std::vector< ConstraintBasePtr > mConstraints
List of constraints.
Definition: ConstrainedGroup.hpp:108
ConstraintBasePtr getConstraint(std::size_t _index)
Return a constraint.
Definition: ConstrainedGroup.cpp:74
std::size_t getNumConstraints() const
Return number of constraints in this constrained group.
Definition: ConstrainedGroup.cpp:68
bool containConstraint(const ConstConstraintBasePtr &_constraint) const
Return true if _constraint is contained.
Definition: ConstrainedGroup.cpp:107
ConstraintSolver manages constraints and computes constraint impulses.
Definition: ConstraintSolver.hpp:56
std::shared_ptr< const ConstraintBase > ConstConstraintBasePtr
Definition: SmartPointer.hpp:45
std::shared_ptr< ConstraintBase > ConstraintBasePtr
Definition: SmartPointer.hpp:45
Definition: BulletCollisionDetector.cpp:63