Skip to content

Commit

Permalink
fix(scenario_selector): fix build warning in Humble (#470)
Browse files Browse the repository at this point in the history
* fix(scenario_selector): fix build warning in Humble

* ci(pre-commit): autofix

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
h-ohta and pre-commit-ci[bot] authored May 15, 2023
1 parent d397e1f commit 540375b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
#include <autoware_auto_planning_msgs/msg/trajectory.hpp>
#include <geometry_msgs/msg/twist_stamped.hpp>
#include <nav_msgs/msg/odometry.hpp>
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#include <tier4_planning_msgs/msg/scenario.hpp>

#include <lanelet2_core/LaneletMap.h>
#include <lanelet2_routing/RoutingGraph.h>
#include <lanelet2_traffic_rules/TrafficRules.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#include <tf2_ros/buffer.h>
#include <tf2_ros/transform_listener.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ std::string ScenarioSelectorNode::selectScenarioByPosition()
}

if (current_scenario_ == tier4_planning_msgs::msg::Scenario::PARKING) {
bool is_parking_completed;
bool is_parking_completed{};
this->get_parameter<bool>("is_parking_completed", is_parking_completed);
if (is_parking_completed && is_in_lane) {
this->set_parameter(rclcpp::Parameter("is_parking_completed", false));
Expand Down

0 comments on commit 540375b

Please sign in to comment.