MCPcopy Create free account
hub / github.com/dartsim/dart / getRootBodyNode

Method getRootBodyNode

dart/dynamics/Skeleton.cpp:856–873  ·  view source on GitHub ↗

==============================================================================

Source from the content-addressed store, hash-verified

854
855//==============================================================================
856BodyNode* Skeleton::getRootBodyNode(std::size_t _treeIdx)
857{
858 if (mTreeCache.size() > _treeIdx)
859 return mTreeCache[_treeIdx].mBodyNodes[0];
860
861 if (mTreeCache.size() == 0) {
862 dterr << "[Skeleton::getRootBodyNode] Requested a root BodyNode from a "
863 << "Skeleton with no BodyNodes!\n";
864 DART_ASSERT(false);
865 } else {
866 dterr << "[Skeleton::getRootBodyNode] Requested invalid root BodyNode "
867 << "index (" << _treeIdx << ")! Must be less than "
868 << mTreeCache.size() << ".\n";
869 DART_ASSERT(false);
870 }
871
872 return nullptr;
873}
874
875//==============================================================================
876const BodyNode* Skeleton::getRootBodyNode(std::size_t _treeIdx) const

Callers 15

parseWorldStringMethod · 0.80
createWorldFunction · 0.80
drawSkeletonMethod · 0.80
refreshSkeletonsMethod · 0.80
setTransformOfMethod · 0.80
satisfyMethod · 0.80
SkeletonFunction · 0.80
test_get_child_methodsFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 9

test_get_child_methodsFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64