Skip to content

Commit e3ad606

Browse files
veqcckarishma1911
authored andcommitted
fix(behavior_velocity_run_out_module): initialize accel_reason_ (autowarefoundation#6982)
fix(behavior_velocity_run_out_module): initialize accel_reason_ Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp>
1 parent 78ea00d commit e3ad606

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

planning/behavior_velocity_run_out_module/src/debug.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ visualization_msgs::msg::MarkerArray createPolygonMarkerArray(
7373

7474
RunOutDebug::RunOutDebug(rclcpp::Node & node) : node_(node)
7575
{
76+
accel_reason_ = AccelReason::UNKNOWN;
77+
7678
pub_debug_values_ =
7779
node.create_publisher<Float32MultiArrayStamped>("~/debug/run_out/debug_values", 1);
7880
pub_accel_reason_ = node.create_publisher<Int32Stamped>("~/debug/run_out/accel_reason", 1);

planning/behavior_velocity_run_out_module/src/debug.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class RunOutDebug
8686
NO_OBSTACLE = 1,
8787
PASS = 2,
8888
LOW_JERK = 3,
89+
UNKNOWN = 4,
8990
};
9091

9192
struct TextWithPosition

0 commit comments

Comments
 (0)