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

Function createGround

tutorials/tutorial_collisions_finished/main.cpp:593–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591}
592
593SkeletonPtr createGround()
594{
595 SkeletonPtr ground = Skeleton::create("ground");
596
597 BodyNode* bn = ground->createJointAndBodyNodePair<WeldJoint>().second;
598
599 std::shared_ptr<BoxShape> shape = std::make_shared<BoxShape>(Eigen::Vector3d(
600 default_ground_width, default_ground_width, default_wall_thickness));
601 auto shapeNode
602 = bn->createShapeNodeWith<VisualAspect, CollisionAspect, DynamicsAspect>(
603 shape);
604 shapeNode->getVisualAspect()->setColor(Eigen::Vector3d(1.0, 1.0, 1.0));
605
606 return ground;
607}
608
609SkeletonPtr createWall()
610{

Callers 1

mainFunction · 0.70

Calls 2

getVisualAspectMethod · 0.80
setColorMethod · 0.45

Tested by

no test coverage detected