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

Function createRigidChain

tutorials/tutorial_collisions_finished/main.cpp:508–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506}
507
508SkeletonPtr createRigidChain()
509{
510 SkeletonPtr chain = Skeleton::create("rigid_chain");
511
512 // Add bodies to the chain
513 BodyNode* bn = addRigidBody<FreeJoint>(chain, "rigid box 1", Shape::BOX);
514 bn = addRigidBody<BallJoint>(chain, "rigid cyl 2", Shape::CYLINDER, bn);
515 bn = addRigidBody<BallJoint>(chain, "rigid box 3", Shape::BOX, bn);
516
517 setAllColors(chain, dart::Color::Orange());
518
519 return chain;
520}
521
522SkeletonPtr createRigidRing()
523{

Callers 1

mainFunction · 0.70

Calls 2

OrangeClass · 0.85
setAllColorsFunction · 0.70

Tested by

no test coverage detected