18 Vector3d displacement(-0.5 * length, -0.25 * length, 0.);
19 unsigned int child_left = model->addBody(parent_body_id,
Xtrans(displacement), joint_rot_z, body);
23 displacement.
set(0.5 * length, -0.25 * length, 0.);
24 unsigned int child_right = model->addBody(parent_body_id,
Xtrans(displacement), joint_rot_z, body);
40 unsigned int base_child = model->addBody(0,
Xtrans(
Vector3d(0., 0., 0.)), joint_rot_z, body);
Joint joint_rot_z(SpatialVector(0., 0., 1., 0., 0., 0.))
void generate_planar_tree(ModelPtr model, int depth)
std::shared_ptr< Model > ModelPtr
SpatialTransform Xtrans(const Vector3d &r)
void generate_planar_tree_recursive(ModelPtr model, unsigned int parent_body_id, int depth, double length)
void set(const Eigen::Vector3d &v)