Skip to content

Commit

Permalink
Change matrix initialization in order to support older versions of Ei…
Browse files Browse the repository at this point in the history
…gen.

Signed-off-by: Joan Aguilar Mayans <[email protected]>
  • Loading branch information
JoanAguilar committed Nov 22, 2022
1 parent 1f124b5 commit e4dcbc0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dartsim/src/SDFFeatures_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -942,14 +942,14 @@ TEST_P(SDFFeatures_TEST, AddedMass)
// Expected spatial inertia matrix. This includes inertia due to the body's
// mass and added mass. Note that the ordering of the matrix is different
// than the one used in SDF.
const Eigen::Matrix6d expectedSpatialInertia {
{17, 17, 18, 4, 9, 13},
{17, 20, 20, 5, 10, 14},
{18, 20, 22, 6, 11, 15},
{4, 5, 6, 2, 2, 3},
{9, 10, 11, 2, 8, 8},
{13, 14, 15, 3, 8, 13}
};
Eigen::Matrix6d expectedSpatialInertia;
expectedSpatialInertia <<
17, 17, 18, 4, 9, 13,
17, 20, 20, 5, 10, 14,
18, 20, 22, 6, 11, 15,
4, 5, 6, 2, 2, 3,
9, 10, 11, 2, 8, 8,
13, 14, 15, 3, 8, 13;

auto world = this->LoadWorld(TEST_WORLD_DIR"/added_mass.sdf");
ASSERT_NE(nullptr, world);
Expand Down

0 comments on commit e4dcbc0

Please sign in to comment.