From dbe25f0b346397b3a16305587de98d1a0241e36c Mon Sep 17 00:00:00 2001 From: h-ohta Date: Mon, 15 May 2023 15:59:34 +0900 Subject: [PATCH 1/2] fix(behavior_path_planner): fix build error in Humble --- .../behavior_path_planner/utilities.hpp | 32 +------------------ .../avoidance/avoidance_module.cpp | 2 +- 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/planning/behavior_path_planner/include/behavior_path_planner/utilities.hpp b/planning/behavior_path_planner/include/behavior_path_planner/utilities.hpp index 08d9808997011..f6511de0df423 100644 --- a/planning/behavior_path_planner/include/behavior_path_planner/utilities.hpp +++ b/planning/behavior_path_planner/include/behavior_path_planner/utilities.hpp @@ -45,7 +45,7 @@ #include #include #include -#include +#include #include #include @@ -79,36 +79,6 @@ inline void fromMsg(const geometry_msgs::msg::PoseStamped & msg, tf2::Stamped -inline void doTransform( - const geometry_msgs::msg::Point & t_in, geometry_msgs::msg::Point & t_out, - const geometry_msgs::msg::TransformStamped & transform) -{ - tf2::Transform t; - fromMsg(transform.transform, t); - tf2::Vector3 v_in; - fromMsg(t_in, v_in); - tf2::Vector3 v_out = t * v_in; - toMsg(v_out, t_out); -} } // namespace tf2 namespace behavior_path_planner diff --git a/planning/behavior_path_planner/src/scene_module/avoidance/avoidance_module.cpp b/planning/behavior_path_planner/src/scene_module/avoidance/avoidance_module.cpp index 0bf4cf4d90b42..c306c22e88c64 100644 --- a/planning/behavior_path_planner/src/scene_module/avoidance/avoidance_module.cpp +++ b/planning/behavior_path_planner/src/scene_module/avoidance/avoidance_module.cpp @@ -2449,7 +2449,7 @@ void AvoidanceModule::updateRegisteredObject(const ObjectDataArray & now_objects }; // -- check now_objects, add it if it has new object id -- - for (const auto now_obj : now_objects) { + for (const auto & now_obj : now_objects) { if (!isAlreadyRegistered(now_obj.object.object_id)) { registered_objects_.push_back(now_obj); } From c8a78bdf2ddba54fdd75825b43c794db5e881c0b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 May 2023 07:01:42 +0000 Subject: [PATCH 2/2] ci(pre-commit): autofix --- .../include/behavior_path_planner/utilities.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planning/behavior_path_planner/include/behavior_path_planner/utilities.hpp b/planning/behavior_path_planner/include/behavior_path_planner/utilities.hpp index f6511de0df423..8e3eaeb4bb455 100644 --- a/planning/behavior_path_planner/include/behavior_path_planner/utilities.hpp +++ b/planning/behavior_path_planner/include/behavior_path_planner/utilities.hpp @@ -34,6 +34,7 @@ #include #include #include +#include #include #include @@ -45,7 +46,6 @@ #include #include #include -#include #include #include