Skip to content

Commit

Permalink
fix(behavior_velocity_run_out_module): initialize accel_reason_ (#6982
Browse files Browse the repository at this point in the history
)

fix(behavior_velocity_run_out_module): initialize accel_reason_

Signed-off-by: Ryuta Kambe <[email protected]>
  • Loading branch information
veqcc authored May 13, 2024
1 parent bd46dc3 commit f3cd528
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions planning/behavior_velocity_run_out_module/src/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ visualization_msgs::msg::MarkerArray createPolygonMarkerArray(

RunOutDebug::RunOutDebug(rclcpp::Node & node) : node_(node)
{
accel_reason_ = AccelReason::UNKNOWN;

pub_debug_values_ =
node.create_publisher<Float32MultiArrayStamped>("~/debug/run_out/debug_values", 1);
pub_accel_reason_ = node.create_publisher<Int32Stamped>("~/debug/run_out/accel_reason", 1);
Expand Down
1 change: 1 addition & 0 deletions planning/behavior_velocity_run_out_module/src/debug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class RunOutDebug
NO_OBSTACLE = 1,
PASS = 2,
LOW_JERK = 3,
UNKNOWN = 4,
};

struct TextWithPosition
Expand Down

0 comments on commit f3cd528

Please sign in to comment.