Skip to content

Commit

Permalink
Fix spell check and remove headers
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>
  • Loading branch information
zulfaqar-azmi-t4 committed Apr 9, 2024
1 parent 54a1a44 commit 75d7b20
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
7 changes: 4 additions & 3 deletions planning/behavior_path_lane_change_module/src/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2064,14 +2064,15 @@ bool NormalLaneChange::isVehicleStuck(

double NormalLaneChange::get_max_velocity_for_safety_check() const
{
const auto extenal_velocity_limit_ptr = planner_data_->external_limit_max_velocity;
if (extenal_velocity_limit_ptr) {
const auto external_velocity_limit_ptr = planner_data_->external_limit_max_velocity;
if (external_velocity_limit_ptr) {
return std::min(
static_cast<double>(extenal_velocity_limit_ptr->max_velocity), getCommonParam().max_vel);
static_cast<double>(external_velocity_limit_ptr->max_velocity), getCommonParam().max_vel);
}

return getCommonParam().max_vel;
}

bool NormalLaneChange::isVehicleStuck(const lanelet::ConstLanelets & current_lanes) const
{
if (current_lanes.empty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "behavior_path_planner_common/interface/steering_factor_interface.hpp"
#include "tier4_autoware_utils/ros/logger_level_configure.hpp"

#include <rclcpp/subscription.hpp>
#include <tier4_autoware_utils/ros/published_time_publisher.hpp>

#include <autoware_adapi_v1_msgs/msg/operation_mode_state.hpp>
Expand All @@ -37,11 +36,11 @@
#include <nav_msgs/msg/odometry.hpp>
#include <tier4_planning_msgs/msg/approval.hpp>
#include <tier4_planning_msgs/msg/avoidance_debug_msg_array.hpp>
#include <tier4_planning_msgs/msg/detail/velocity_limit__struct.hpp>
#include <tier4_planning_msgs/msg/path_change_module.hpp>
#include <tier4_planning_msgs/msg/reroute_availability.hpp>
#include <tier4_planning_msgs/msg/scenario.hpp>
#include <tier4_planning_msgs/msg/stop_reason_array.hpp>
#include <tier4_planning_msgs/msg/velocity_limit.hpp>
#include <visualization_msgs/msg/marker.hpp>

#include <map>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
#include <vehicle_info_util/vehicle_info_util.hpp>

#include <tier4_planning_msgs/msg/path_change_module_id.hpp>
#include <tier4_planning_msgs/msg/velocity_limit.hpp>

#include <functional>
#include <memory>
#include <string>
#include <vector>
Expand Down

0 comments on commit 75d7b20

Please sign in to comment.