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

Function createRigidChain

tutorials/tutorial_collisions/main.cpp:360–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360SkeletonPtr createRigidChain()
361{
362 SkeletonPtr chain = Skeleton::create("rigid_chain");
363
364 // Add bodies to the chain
365 BodyNode* bn = addRigidBody<FreeJoint>(chain, "rigid box 1", Shape::BOX);
366 bn = addRigidBody<BallJoint>(chain, "rigid cyl 2", Shape::CYLINDER, bn);
367 bn = addRigidBody<BallJoint>(chain, "rigid box 3", Shape::BOX, bn);
368
369 setAllColors(chain, dart::Color::Orange());
370
371 return chain;
372}
373
374SkeletonPtr createRigidRing()
375{

Callers 1

mainFunction · 0.70

Calls 2

OrangeClass · 0.85
setAllColorsFunction · 0.70

Tested by

no test coverage detected