Skip to content

Commit 80759d0

Browse files
committed
fable: Move fable/json/with_eigen.hpp to fable/utility/eigen.hpp
BREAKING CHANGE: This commit renames a public header file and requires that rename your #include statements: - #include <fable/json/with_eigen.hpp> + #include <fable/utility/eigen.hpp>
1 parent 8e85db4 commit 80759d0

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

fable/include/fable/json/with_eigen.hpp renamed to fable/include/fable/utility/eigen.hpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,17 @@
1616
* SPDX-License-Identifier: Apache-2.0
1717
*/
1818
/**
19-
* \file fable/json/with_eigen.hpp
19+
* \file fable/utility/eigen.hpp
2020
* \see fable/json.hpp
2121
*
2222
* This file contains specializations of `nlohmann::adl_serializer` for Eigen
23-
* types in order to provide serialization for third-party types.
23+
* types in order to provide JSON serialization.
2424
*/
2525

2626
#pragma once
2727

28-
#include <nlohmann/json.hpp>
29-
30-
#include <Eigen/Geometry>
28+
#include <Eigen/Geometry> // for Vector3d, Quaterniond, Isometry3d
29+
#include <nlohmann/json.hpp> // for adl_serializer<>, json
3130

3231
namespace nlohmann {
3332

models/include/cloe/component/lane_sensor.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
#pragma once
2323

2424
#include <Eigen/Geometry> // for Isometry3d
25-
#include <fable/json/with_eigen.hpp> // for to_json
2625

2726
#include <cloe/component.hpp> // for Component
2827
#include <cloe/component/frustum.hpp> // for Frustum
2928
#include <cloe/component/lane_boundary.hpp> // for LaneBoundaries
29+
#include <fable/utility/eigen.hpp> // for to_json
3030

3131
namespace cloe {
3232

models/include/cloe/component/object.hpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@
2525
#include <vector> // for vector<>
2626

2727
#include <Eigen/Geometry> // for Isometry3d, Vector3d
28-
#include <fable/json/with_eigen.hpp> // for to_json
29-
3028
#include <cloe/core.hpp> // for Json
29+
#include <fable/utility/eigen.hpp> // for to_json
3130

3231
namespace cloe {
3332

models/include/cloe/component/object_sensor.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <cloe/component.hpp> // for Component, Json
2626
#include <cloe/component/frustum.hpp> // for Frustum
2727
#include <cloe/component/object.hpp> // for Object, Isometry3d
28+
#include <fable/utility/eigen.hpp>
2829

2930
namespace cloe {
3031

models/src/cloe/component/lane_boundary.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <string> // for string
2828
#include <type_traits> // for underlying_type<>
2929

30-
#include <fable/json/with_eigen.hpp> // for to_json
30+
#include <fable/utility/eigen.hpp> // for to_json
3131

3232
#include <cloe/core.hpp> // for Json, Schema
3333

0 commit comments

Comments
 (0)