Skip to content

Commit

Permalink
Use aligned vector for vector of transforms
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanCurtis-TRI committed Aug 6, 2020
1 parent 350ae57 commit 7b4285b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ GTEST_TEST(GjkLibccdSupportFunction, ConvexSupport) {

/* Collection of arbitrary poses of the convex mesh: identity, translation,
and rotation. */
vector<Transform3d> X_WCs{
Transform3d::Identity(),
Transform3d(Translation3d{-1, 2, -3}),
Transform3d(Quaterniond{0.5, -0.5, 0.5, -0.5})
};
aligned_vector<Transform3d> X_WCs;
X_WCs.push_back(Transform3d::Identity());
X_WCs.emplace_back(Translation3d{-1, 2, -3});
X_WCs.emplace_back(Quaterniond{0.5, -0.5, 0.5, -0.5});

/* Collection of arbitrary directions (each expressed in Frame C). */
vector<Vector3d> directions_C{Vector3d{-2, -2, -2}, Vector3d{-2, 3, -2},
Vector3d{7, 1, -1}};
Expand Down

0 comments on commit 7b4285b

Please sign in to comment.