Skip to content

Commit ddd5302

Browse files
authored
fix(avoidance): turn off blinker when the ego return original lane (autowarefoundation#6300)
* refactor(path_shifter): add id to ShiftLine Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(avoidance): turn off blinker when the ego return original lane Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(avoidance): use threshold param Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(avoidance): use lambda Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> --------- Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
1 parent 3bb5764 commit ddd5302

File tree

1 file changed

+9
-0
lines changed
  • planning/behavior_path_planner_common/include/behavior_path_planner_common/utils/path_shifter

1 file changed

+9
-0
lines changed

planning/behavior_path_planner_common/include/behavior_path_planner_common/utils/path_shifter/path_shifter.hpp

+9
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717

1818
#include <rclcpp/clock.hpp>
1919
#include <rclcpp/logging.hpp>
20+
#include <tier4_autoware_utils/ros/uuid_helper.hpp>
2021

2122
#include <autoware_auto_planning_msgs/msg/path_with_lane_id.hpp>
2223
#include <geometry_msgs/msg/point.hpp>
24+
#include <unique_identifier_msgs/msg/uuid.hpp>
2325

2426
#include <optional>
2527
#include <string>
@@ -31,9 +33,13 @@ using autoware_auto_planning_msgs::msg::PathPointWithLaneId;
3133
using autoware_auto_planning_msgs::msg::PathWithLaneId;
3234
using geometry_msgs::msg::Point;
3335
using geometry_msgs::msg::Pose;
36+
using tier4_autoware_utils::generateUUID;
37+
using unique_identifier_msgs::msg::UUID;
3438

3539
struct ShiftLine
3640
{
41+
ShiftLine() : id(generateUUID()) {}
42+
3743
Pose start{}; // shift start point in absolute coordinate
3844
Pose end{}; // shift start point in absolute coordinate
3945

@@ -45,6 +51,9 @@ struct ShiftLine
4551

4652
size_t start_idx{}; // associated start-point index for the reference path
4753
size_t end_idx{}; // associated end-point index for the reference path
54+
55+
// for unique_id
56+
UUID id{};
4857
};
4958
using ShiftLineArray = std::vector<ShiftLine>;
5059

0 commit comments

Comments
 (0)