| 420 | } |
| 421 | |
| 422 | SkeletonPtr createGround() |
| 423 | { |
| 424 | SkeletonPtr ground = Skeleton::create("ground"); |
| 425 | |
| 426 | BodyNode* bn = ground->createJointAndBodyNodePair<WeldJoint>().second; |
| 427 | |
| 428 | std::shared_ptr<BoxShape> shape = std::make_shared<BoxShape>(Eigen::Vector3d( |
| 429 | default_ground_width, default_ground_width, default_wall_thickness)); |
| 430 | auto shapeNode |
| 431 | = bn->createShapeNodeWith<VisualAspect, CollisionAspect, DynamicsAspect>( |
| 432 | shape); |
| 433 | shapeNode->getVisualAspect()->setColor(Eigen::Vector3d(1.0, 1.0, 1.0)); |
| 434 | |
| 435 | return ground; |
| 436 | } |
| 437 | |
| 438 | SkeletonPtr createWall() |
| 439 | { |
no test coverage detected