Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions include/fcl/math/sampler/sampler_se3_euler-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ Vector6<S> SamplerSE3Euler<S>::sample() const
this->rng.quaternion(s);

Quaternion<S> quat(s[0], s[1], s[2], s[3]);

#if EIGEN_VERSION_AT_LEAST(5,0,0)
Vector3<S> angles = quat.toRotationMatrix().canonicalEulerAngles(0, 1, 2);
#else
Vector3<S> angles = quat.toRotationMatrix().eulerAngles(0, 1, 2);
#endif

q[3] = angles[0];
q[4] = angles[1];
Expand Down
6 changes: 6 additions & 0 deletions include/fcl/math/sampler/sampler_se3_euler_ball-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ Vector6<S> SamplerSE3Euler_ball<S>::sample() const
this->rng.quaternion(s);

Quaternion<S> quat(s[0], s[1], s[2], s[3]);

#if EIGEN_VERSION_AT_LEAST(5,0,0)
Vector3<S> angles = quat.toRotationMatrix().canonicalEulerAngles(0, 1, 2);
#else
Vector3<S> angles = quat.toRotationMatrix().eulerAngles(0, 1, 2);
#endif

q[3] = angles[0];
q[4] = angles[1];
q[5] = angles[2];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h"

#include <algorithm>
#include <tuple>

#include <gtest/gtest.h>

Expand Down Expand Up @@ -106,7 +107,8 @@ class DoSimplex2Test : public ::testing::Test {
// defined point A is in Region 1.
void ConfigureDeathTest(double u, double v) {
const Vector3Ccd p_OA = phat_OB_ * u + norm_OB_ * v;
SetValidSimplex(eigen_to_ccd(p_OA), eigen_to_ccd(p_OB_), false);
std::ignore =
SetValidSimplex(eigen_to_ccd(p_OA), eigen_to_ccd(p_OB_), false);
}

// The simplex the tests will operate on.
Expand Down
2 changes: 0 additions & 2 deletions test/test_fcl_sphere_capsule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,6 @@ void test_Sphere_Capsule_Distance_test_separated()
Transform3<S> capsule_transform(Translation3<S>(Vector3<S>(0., 0., 175)));

S distance = 0.;
Vector3<S> p1;
Vector3<S> p2;
bool is_separated = solver.shapeDistance(sphere1, sphere1_transform, capsule, capsule_transform, &distance);

EXPECT_TRUE (is_separated);
Expand Down