diff --git a/core/include/moveit/task_constructor/fmt_p.h b/core/include/moveit/task_constructor/fmt_p.h new file mode 100644 index 000000000..618c3d66e --- /dev/null +++ b/core/include/moveit/task_constructor/fmt_p.h @@ -0,0 +1,49 @@ +/********************************************************************* + * Software License Agreement (BSD License) + * + * Copyright (c) 2024, University of Hamburg + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + *********************************************************************/ + +/* Authors: Michael Goerner + Desc: Thin wrapper around fmt includes to provide Eigen formatters for fmt9 +*/ + +#pragma once + +#include +#include +#include + +#if FMT_VERSION >= 90000 +template +struct fmt::formatter, T>, char>> : ostream_formatter +{}; +#endif diff --git a/core/python/bindings/src/solvers.cpp b/core/python/bindings/src/solvers.cpp index 572cf71e2..29c87b316 100644 --- a/core/python/bindings/src/solvers.cpp +++ b/core/python/bindings/src/solvers.cpp @@ -37,8 +37,8 @@ #include #include #include +#include #include -#include #include "utils.h" namespace py = pybind11; diff --git a/core/src/container.cpp b/core/src/container.cpp index 265d8d00f..9d8197515 100644 --- a/core/src/container.cpp +++ b/core/src/container.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -46,7 +47,6 @@ #include #include #include -#include #include using namespace std::placeholders; diff --git a/core/src/cost_terms.cpp b/core/src/cost_terms.cpp index 8ba3aac91..4bd6ebadc 100644 --- a/core/src/cost_terms.cpp +++ b/core/src/cost_terms.cpp @@ -36,6 +36,7 @@ #include #include +#include #include #include @@ -44,7 +45,6 @@ #include -#include #include namespace moveit { diff --git a/core/src/properties.cpp b/core/src/properties.cpp index 95bd2570c..4f727b8e9 100644 --- a/core/src/properties.cpp +++ b/core/src/properties.cpp @@ -37,8 +37,7 @@ */ #include -#include -#include +#include #include #include diff --git a/core/src/stage.cpp b/core/src/stage.cpp index 9fbf4d27e..896668e13 100644 --- a/core/src/stage.cpp +++ b/core/src/stage.cpp @@ -38,11 +38,11 @@ #include #include #include +#include #include #include -#include #include #include diff --git a/core/src/stages/compute_ik.cpp b/core/src/stages/compute_ik.cpp index 29cf79afd..bf0fa4a45 100644 --- a/core/src/stages/compute_ik.cpp +++ b/core/src/stages/compute_ik.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -48,7 +49,6 @@ #include #include #include -#include namespace moveit { namespace task_constructor { diff --git a/core/src/stages/connect.cpp b/core/src/stages/connect.cpp index da6e3406b..c300a2617 100644 --- a/core/src/stages/connect.cpp +++ b/core/src/stages/connect.cpp @@ -39,11 +39,10 @@ #include #include #include +#include #include #include -#include -#include using namespace trajectory_processing; diff --git a/core/src/stages/fix_collision_objects.cpp b/core/src/stages/fix_collision_objects.cpp index f371191f0..4f68fe6e6 100644 --- a/core/src/stages/fix_collision_objects.cpp +++ b/core/src/stages/fix_collision_objects.cpp @@ -38,6 +38,7 @@ #include #include +#include #include #include @@ -46,7 +47,6 @@ #include #include #include -#include namespace vm = visualization_msgs; namespace cd = collision_detection; diff --git a/core/src/stages/modify_planning_scene.cpp b/core/src/stages/modify_planning_scene.cpp index 3a5389b35..dd24c7594 100644 --- a/core/src/stages/modify_planning_scene.cpp +++ b/core/src/stages/modify_planning_scene.cpp @@ -39,9 +39,9 @@ #include #include #include +#include #include -#include namespace moveit { namespace task_constructor {