9 SegmentPelvis = 0,
SegmentThigh,
SegmentShank,
SegmentFoot,
SegmentMiddleTrunk,
SegmentUpperTrunk,
SegmentUpperArm,
SegmentLowerArm,
SegmentHand,
SegmentHead,
SegmentNameLast 16 double SegmentCOM[
SegmentNameLast][3] = {{0., 0., 0.0891}, {0., 0., -0.1729}, {0., 0., -0.1963}, {0.1254, 0., -0.0516}, {0., 0., 0.1185}, {0., 0., 0.1195}, {0., 0., -0.1626}, {0., 0., -0.1230}, {0., 0., -0.0680}, {0., 0., 1.1214}};
18 double SegmentRadiiOfGyration[
SegmentNameLast][3] = {{0.0897, 0.0855, 0.0803}, {0.1389, 0.0629, 0.1389}, {0.1123, 0.0454, 0.1096}, {0.0267, 0.0129, 0.0254}, {0.0970, 0.1009, 0.0825}, {0.1273, 0.1172, 0.0807}, {0.0803, 0.0758, 0.0445}, {0.0742, 0.0713, 0.0325}, {0.0541, 0.0442, 0.0346}, {0.0736, 0.0634, 0.0765}};
22 Matrix3d inertia_C(Matrix3d::Zero());
43 Joint free_flyer(
SpatialVector(0., 0., 0., 1., 0., 0.),
SpatialVector(0., 0., 0., 0., 1., 0.),
SpatialVector(0., 0., 0., 0., 0., 1.),
SpatialVector(0., 1., 0., 0., 0., 0.),
SpatialVector(0., 0., 1., 0., 0., 0.),
SpatialVector(1., 0., 0., 0., 0., 0.));
45 Joint rot_yxz(
SpatialVector(0., 1., 0., 0., 0., 0.),
SpatialVector(1., 0., 0., 0., 0., 0.),
SpatialVector(0., 0., 1., 0., 0., 0.));
47 Joint rot_yz(
SpatialVector(0., 1., 0., 0., 0., 0.),
SpatialVector(0., 0., 1., 0., 0., 0.));
55 unsigned int pelvis_id = model->addBody(0,
Xtrans(
Vector3d(0., 0., 0.)), free_flyer, pelvis_body,
"pelvis");
58 model->addBody(pelvis_id,
Xtrans(
Vector3d(0., -0.0872, 0.)), rot_yxz, thigh_body,
"thigh_r");
63 model->addBody(pelvis_id,
Xtrans(
Vector3d(0., 0.0872, 0.)), rot_yxz, thigh_body,
"thigh_l");
double SegmentRadiiOfGyration[SegmentNameLast][3]
double SegmentMass[SegmentNameLast]
std::shared_ptr< Model > ModelPtr
double SegmentCOM[SegmentNameLast][3]
SpatialTransform Xtrans(const Vector3d &r)
Body create_body(SegmentName segment)
double SegmentLengths[SegmentNameLast]
void generate_human36model(RobotDynamics::ModelPtr model)