33 #ifndef DART_DYNAMICS_CHAIN_HPP_ 34 #define DART_DYNAMICS_CHAIN_HPP_ 36 #include "dart/dynamics/Linkage.hpp" 55 bool includeUpstreamParentJoint =
false);
58 std::vector<BodyNode*>
satisfy()
const;
86 IncludeUpstreamParentJoint
104 const std::string& _name =
"Chain");
110 ChainPtr
cloneChain(
const std::string& cloneName)
const;
117 const std::string& cloneName)
const override;
136 const std::string& _name =
"Chain");
142 #endif // DART_DYNAMICS_CHAIN_HPP_ A Linkage is a ReferentialSkeleton with the special property that all the BodyNodes included in it fo...
Definition: Linkage.hpp:53
static ChainPtr create(const Chain::Criteria &_criteria, const std::string &_name="Chain")
Create a Chain given some Chain::Criteria.
Definition: Chain.cpp:135
Chain is a specialized type of Linkage that represents a single unbranching and fully connected seque...
Definition: Chain.hpp:46
bool isStillChain() const
Returns false if this Chain has been broken, or some new Branching has been added.
Definition: Chain.cpp:206
Criteria(BodyNode *start, BodyNode *target, bool includeUpstreamParentJoint=false)
Constructor for Chain::Criteria.
Definition: Chain.cpp:40
Definition: Aspect.cpp:40
bool mIncludeUpstreamParentJoint
Set this to true if the parent joint of whichever is upstream of the other should be included...
Definition: Chain.hpp:69
The Criteria class is used to specify how a Linkage should be constructed.
Definition: Linkage.hpp:57
BodyNode class represents a single node of the skeleton.
Definition: BodyNode.hpp:74
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
ChainPtr cloneChain() const
Creates and returns a clone of this Chain.
Definition: Chain.cpp:165
IncludeUpstreamParentJointTag
This enum is used to specify to the create() function that the parent joint of whichever is upstream ...
Definition: Chain.hpp:84
Linkage::Criteria convert() const
Convert this Criteria into Linkage::Criteria.
Definition: Chain.cpp:56
WeakBodyNodePtr mStart
mStart will be the first BodyNode in the chain
Definition: Chain.hpp:61
std::vector< BodyNode * > satisfy() const
Return a vector of BodyNodes that form a chain.
Definition: Chain.cpp:50
Chain(const Chain::Criteria &_criteria, const std::string &_name="Chain")
Constructor for the Chain class.
Definition: Chain.cpp:234