From af2ba95a3cf75a4f1d9f6f2042c3fa3fc0e95997 Mon Sep 17 00:00:00 2001 From: Yutaka Shimizu <43805014+purewater0901@users.noreply.github.com> Date: Mon, 12 Sep 2022 22:22:38 +0900 Subject: [PATCH] feat(motion_utils): add threshold (#1839) * feat(motion_utils): add threshold Signed-off-by: yutaka * change to constants.hpp Signed-off-by: yutaka * delete environment Signed-off-by: yutaka Signed-off-by: yutaka --- .../include/motion_utils/constants.hpp | 23 +++++++++++++++++++ .../include/motion_utils/motion_utils.hpp | 1 + 2 files changed, 24 insertions(+) create mode 100644 common/motion_utils/include/motion_utils/constants.hpp diff --git a/common/motion_utils/include/motion_utils/constants.hpp b/common/motion_utils/include/motion_utils/constants.hpp new file mode 100644 index 0000000000000..63a3439a34b8a --- /dev/null +++ b/common/motion_utils/include/motion_utils/constants.hpp @@ -0,0 +1,23 @@ +// Copyright 2022 TIER IV, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#ifndef MOTION_UTILS__CONSTANTS_HPP_ +#define MOTION_UTILS__CONSTANTS_HPP_ + +namespace motion_utils +{ +constexpr double overlap_threshold = 0.1; +} // namespace motion_utils + +#endif // MOTION_UTILS__CONSTANTS_HPP_ diff --git a/common/motion_utils/include/motion_utils/motion_utils.hpp b/common/motion_utils/include/motion_utils/motion_utils.hpp index 88a0c23f295e5..f6c94fbdacc93 100644 --- a/common/motion_utils/include/motion_utils/motion_utils.hpp +++ b/common/motion_utils/include/motion_utils/motion_utils.hpp @@ -15,6 +15,7 @@ #ifndef MOTION_UTILS__MOTION_UTILS_HPP_ #define MOTION_UTILS__MOTION_UTILS_HPP_ +#include "motion_utils/constants.hpp" #include "motion_utils/marker/marker_helper.hpp" #include "motion_utils/resample/resample.hpp" #include "motion_utils/trajectory/interpolation.hpp"