Skip to content

Commit

Permalink
Applied fix for computation of link center-of-mass when loading an SD…
Browse files Browse the repository at this point in the history
…F file.
  • Loading branch information
Chien-Liang Fok committed Mar 3, 2016
1 parent 24a17a5 commit e14f832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drake/systems/plants/RigidBodyTreeSDF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void parseSDFInertial(shared_ptr<RigidBody> body, XMLElement* node,

parseScalarValue(node, "mass", body->mass);

body->com << T(0, 3), T(1, 3), T(2, 3);
body->com = T_link.inverse() * T.translation();

Matrix<double, TWIST_SIZE, TWIST_SIZE> I =
Matrix<double, TWIST_SIZE, TWIST_SIZE>::Zero();
Expand Down

0 comments on commit e14f832

Please sign in to comment.