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..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 @@ -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); }