33 #ifndef DART_DYNAMICS_CHAIN_HPP_
34 #define DART_DYNAMICS_CHAIN_HPP_
55 bool includeUpstreamParentJoint =
false);
58 std::vector<BodyNode*>
satisfy()
const;
104 const std::string& _name =
"Chain");
117 const std::string& cloneName)
const override;
136 const std::string& _name =
"Chain");
BodyNode class represents a single node of the skeleton.
Definition: BodyNode.hpp:79
Chain is a specialized type of Linkage that represents a single unbranching and fully connected seque...
Definition: Chain.hpp:47
Chain(const Chain::Criteria &_criteria, const std::string &_name="Chain")
Constructor for the Chain class.
Definition: Chain.cpp:234
ChainPtr cloneChain() const
Creates and returns a clone of this Chain.
Definition: Chain.cpp:165
virtual MetaSkeletonPtr cloneMetaSkeleton(const std::string &cloneName) const=0
Creates an identical clone of this MetaSkeleton.
IncludeUpstreamParentJointTag
This enum is used to specify to the create() function that the parent joint of whichever is upstream ...
Definition: Chain.hpp:85
@ IncludeUpstreamParentJoint
Definition: Chain.hpp:86
bool isStillChain() const
Returns false if this Chain has been broken, or some new Branching has been added.
Definition: Chain.cpp:206
static ChainPtr create(const Chain::Criteria &_criteria, const std::string &_name="Chain")
Create a Chain given some Chain::Criteria.
Definition: Chain.cpp:135
A Linkage is a ReferentialSkeleton with the special property that all the BodyNodes included in it fo...
Definition: Linkage.hpp:54
std::shared_ptr< Chain > ChainPtr
Definition: SmartPointer.hpp:76
std::shared_ptr< MetaSkeleton > MetaSkeletonPtr
Definition: SmartPointer.hpp:68
Definition: BulletCollisionDetector.cpp:65
bool mIncludeUpstreamParentJoint
Set this to true if the parent joint of whichever is upstream of the other should be included.
Definition: Chain.hpp:69
WeakBodyNodePtr mTarget
mTarget will be the final BodyNode in the chain, unless there is a branching or a FreeJoint along the...
Definition: Chain.hpp:65
Criteria(BodyNode *start, BodyNode *target, bool includeUpstreamParentJoint=false)
Constructor for Chain::Criteria.
Definition: Chain.cpp:40
Linkage::Criteria convert() const
Convert this Criteria into Linkage::Criteria.
Definition: Chain.cpp:56
std::vector< BodyNode * > satisfy() const
Return a vector of BodyNodes that form a chain.
Definition: Chain.cpp:50
WeakBodyNodePtr mStart
mStart will be the first BodyNode in the chain
Definition: Chain.hpp:61
The Criteria class is used to specify how a Linkage should be constructed.
Definition: Linkage.hpp:58