Skip to content
74 changes: 73 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,81 @@
## FCL 0

### FCL 0.8.0 (2026-11-15)

* Breaking changes

* Macosx is no longer part of CI. [659](https://github.com/flexible-collision-library/fcl/pull/659)
* See Issue [661](https://github.com/flexible-collision-library/fcl/issues/661) on how to restore it.
* See Issue [661](https://github.com/flexible-collision-library/fcl/issues/661) on how to restore it.
* Build with C++17 by default, except on Windows (C++14):
[#659](https://github.com/flexible-collision-library/fcl/pull/659)
* gtest is no longer vendored; it is fetched by CMake (upgraded from 1.7 to 1.12):
[#598](https://github.com/flexible-collision-library/fcl/pull/598)

* Core/Common

* Specify the C++11 requirement with target_compile_features:
[#645](https://github.com/flexible-collision-library/fcl/pull/645)
* Add missing cassert includes:
[#620](https://github.com/flexible-collision-library/fcl/pull/620)
[#649](https://github.com/flexible-collision-library/fcl/pull/649)
* Silence uninitialized-variable and other modern compiler warnings:
[#657](https://github.com/flexible-collision-library/fcl/pull/657)
[#660](https://github.com/flexible-collision-library/fcl/pull/660)
* Detect the Eigen version correctly with Eigen 5 in FindEigen3.cmake

* Math

* Fix compile error in motion classes when S is not double:
[#592](https://github.com/flexible-collision-library/fcl/pull/592)
* Initialize InterpMotion reference_p and linear_vel to zero:
[#510](https://github.com/flexible-collision-library/fcl/pull/510)
[#662](https://github.com/flexible-collision-library/fcl/pull/662)
* Fix Eigen eulerAngles deprecation warning in SE(3) Euler samplers:
[#669](https://github.com/flexible-collision-library/fcl/pull/669)

* Geometry

* Shapes get a representation() method for reproducible failure reports:
[#594](https://github.com/flexible-collision-library/fcl/pull/594)
* Fix signed/unsigned conversion in BVHModel tree construction:
[#622](https://github.com/flexible-collision-library/fcl/pull/622)
* Bound rotated geometry by the rotated local AABB (tighter AABBs):
[#664](https://github.com/flexible-collision-library/fcl/pull/664)

* Broadphase

* Fix SaP manager corruption when an AABB changes width:
[#665](https://github.com/flexible-collision-library/fcl/pull/665)

* Narrowphase

* EPA-GJK failure message can reproduce Convex shapes:
[#594](https://github.com/flexible-collision-library/fcl/pull/594)
* Make EPA more robust with a wrapped ccdVec3PointTriDist2:
[#634](https://github.com/flexible-collision-library/fcl/pull/634)
* Correct doSimplex4() tolerances:
[#652](https://github.com/flexible-collision-library/fcl/pull/652)
* Fix EPA outward face normal for near-planar polytopes:
[#658](https://github.com/flexible-collision-library/fcl/pull/658)
* Make EPA polytope expansion deterministic:
[#670](https://github.com/flexible-collision-library/fcl/pull/670)

* Build/Test/Misc

* Move CI from Travis to GitHub Actions:
[#596](https://github.com/flexible-collision-library/fcl/pull/596)
[#597](https://github.com/flexible-collision-library/fcl/pull/597)
[#600](https://github.com/flexible-collision-library/fcl/pull/600)
[#647](https://github.com/flexible-collision-library/fcl/pull/647)
[#666](https://github.com/flexible-collision-library/fcl/pull/666)
* Update CI to Ubuntu 24.04 and OctoMap 1.10.0:
[#659](https://github.com/flexible-collision-library/fcl/pull/659)
* Only create uninstall target if it does not exist:
[#612](https://github.com/flexible-collision-library/fcl/pull/612)
* Use a local gtest if found:
[#654](https://github.com/flexible-collision-library/fcl/pull/654)
* Fix test warnings with newer gtest and compilers:
[#669](https://github.com/flexible-collision-library/fcl/pull/669)

### FCL 0.7.0 (2021-09-09)

Expand Down
10 changes: 7 additions & 3 deletions CMakeModules/FindEigen3.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# EIGEN3_INCLUDE_DIR - the eigen include directory
# EIGEN3_VERSION - eigen version
#
# This module reads hints about search locations from
# This module reads hints about search locations from
# the following enviroment variables:
#
# EIGEN3_ROOT
Expand All @@ -36,7 +36,11 @@ if(NOT Eigen3_FIND_VERSION)
endif(NOT Eigen3_FIND_VERSION)

macro(_eigen3_check_version)
file(READ "${EIGEN3_INCLUDE_DIR}/Eigen/src/Core/util/Macros.h" _eigen3_version_header)
if(EXISTS "${EIGEN3_INCLUDE_DIR}/Eigen/Version")
file(READ "${EIGEN3_INCLUDE_DIR}/Eigen/Version" _eigen3_version_header)
else()
file(READ "${EIGEN3_INCLUDE_DIR}/Eigen/src/Core/util/Macros.h" _eigen3_version_header)
endif()

string(REGEX MATCH "define[ \t]+EIGEN_WORLD_VERSION[ \t]+([0-9]+)" _eigen3_world_version_match "${_eigen3_version_header}")
set(EIGEN3_WORLD_VERSION "${CMAKE_MATCH_1}")
Expand Down Expand Up @@ -69,7 +73,7 @@ else (EIGEN3_INCLUDE_DIR)

find_path(EIGEN3_INCLUDE_DIR NAMES signature_of_eigen3_matrix_library
HINTS
ENV EIGEN3_ROOT
ENV EIGEN3_ROOT
ENV EIGEN3_ROOT_DIR
PATHS
${CMAKE_INSTALL_PREFIX}/include
Expand Down
2 changes: 2 additions & 0 deletions include/fcl/broadphase/default_broadphase_callbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
#include "fcl/narrowphase/distance_request.h"
#include "fcl/narrowphase/distance_result.h"

#include <cassert>

namespace fcl {

/// @brief Collision data for use with the DefaultCollisionFunction. It stores
Expand Down
2 changes: 1 addition & 1 deletion include/fcl/geometry/bvh/BVH_model-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ int BVHModel<BV>::recursiveBuildTree(int bv_id, int first_primitive, int num_pri

if(num_primitives == 1)
{
bvnode->first_child = -((*cur_primitive_indices) + 1);
bvnode->first_child = -(static_cast<int>(*cur_primitive_indices) + 1);
}
else
{
Expand Down
2 changes: 2 additions & 0 deletions include/fcl/geometry/octree/octree-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@

#include "fcl/geometry/shape/utility.h"

#include <cassert>

#if FCL_HAVE_OCTOMAP

namespace fcl
Expand Down
1 change: 1 addition & 0 deletions include/fcl/geometry/shape/convex-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#ifndef FCL_SHAPE_CONVEX_INL_H
#define FCL_SHAPE_CONVEX_INL_H

#include <cassert>
#include <iomanip>
#include <map>
#include <set>
Expand Down
8 changes: 6 additions & 2 deletions include/fcl/math/motion/interp_motion-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ InterpMotion<S>::InterpMotion()
angular_vel = 0;

// Default reference point is local zero point
reference_p = Vector3<S>::Zero();

// Default linear velocity is zero
linear_vel = Vector3<S>::Zero();
}

//==============================================================================
Expand All @@ -67,7 +69,8 @@ InterpMotion<S>::InterpMotion(
const Matrix3<S>& R2, const Vector3<S>& T2)
: MotionBase<S>(),
tf1(Transform3<S>::Identity()),
tf2(Transform3<S>::Identity())
tf2(Transform3<S>::Identity()),
reference_p(Vector3<S>::Zero())
{
tf1.linear() = R1;
tf1.translation() = T1;
Expand All @@ -85,7 +88,8 @@ InterpMotion<S>::InterpMotion(
template <typename S>
InterpMotion<S>::InterpMotion(
const Transform3<S>& tf1_, const Transform3<S>& tf2_)
: MotionBase<S>(), tf1(tf1_), tf2(tf2_), tf(tf1)
: MotionBase<S>(), tf1(tf1_), tf2(tf2_), tf(tf1),
reference_p(Vector3<S>::Zero())
{
// Compute the velocities for the motion
computeVelocity();
Expand Down
2 changes: 2 additions & 0 deletions include/fcl/math/motion/taylor_model/taylor_model-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@

#include "fcl/math/motion/taylor_model/taylor_model.h"

#include <cassert>

namespace fcl
{

Expand Down
2 changes: 2 additions & 0 deletions include/fcl/math/rng-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@

#include "fcl/math/rng.h"

#include <cassert>

namespace fcl
{

Expand Down
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 @@ -39,6 +39,7 @@
#define FCL_NARROWPHASE_DETAIL_GJKLIBCCD_INL_H

#include <array>
#include <cassert>
#include <iostream>
#include <sstream>
#include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@

#include "fcl/narrowphase/detail/primitive_shape_algorithm/capsule_capsule.h"

#include <cassert>

namespace fcl
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@

#include "fcl/narrowphase/detail/primitive_shape_algorithm/plane.h"

#include <cassert>

namespace fcl
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@

#include "fcl/narrowphase/detail/primitive_shape_algorithm/sphere_box.h"

#include <cassert>

namespace fcl {
namespace detail {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@

#include "fcl/narrowphase/detail/primitive_shape_algorithm/sphere_cylinder.h"

#include <cassert>

namespace fcl {
namespace detail {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
#include "fcl/math/bv/RSS.h"
#include "fcl/math/motion/triangle_motion_bound_visitor.h"

#include <cassert>

namespace fcl
{

Expand Down
2 changes: 2 additions & 0 deletions include/fcl/narrowphase/distance-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@

#include "fcl/narrowphase/collision.h"

#include <cassert>

namespace fcl
{

Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<package format="3">
<name>fcl</name>
<version>0.7.0</version>
<version>0.8.0</version>
<description>FCL: the Flexible Collision Library</description>
<maintainer email="fcl@tri.global">TRI Geometry Team</maintainer>
<license>BSD</license>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include "fcl/narrowphase/detail/convexity_based_algorithm/gjk_libccd-inl.h"

#include <array>
#include <cassert>
#include <memory>
#include <unordered_set>
#include <vector>
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
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void TestSphereToSphereGJKSignedDistance(S radius1, S radius2,

template <typename S>
struct SphereSpecification {
SphereSpecification<S>(S radius_, const Vector3<S>& center_)
SphereSpecification(S radius_, const Vector3<S>& center_)
: radius{radius_}, center{center_} {}
S radius;
Vector3<S> center;
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