From 82e95fc54ca9f7198f51c17ae8e003c0a21f1a8d Mon Sep 17 00:00:00 2001 From: Tony Najjar Date: Mon, 5 Aug 2024 14:59:41 +0000 Subject: [PATCH] linting fixes Signed-off-by: Tony Najjar --- .../plugins/action/remove_in_collision_goals_action.cpp | 3 ++- nav2_costmap_2d/src/costmap_2d_ros.cpp | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nav2_behavior_tree/plugins/action/remove_in_collision_goals_action.cpp b/nav2_behavior_tree/plugins/action/remove_in_collision_goals_action.cpp index 37a375121e..6bc56da558 100644 --- a/nav2_behavior_tree/plugins/action/remove_in_collision_goals_action.cpp +++ b/nav2_behavior_tree/plugins/action/remove_in_collision_goals_action.cpp @@ -112,7 +112,8 @@ inline BT::NodeStatus RemoveInCollisionGoals::tick() } else { RCLCPP_ERROR( node_->get_logger(), - "RemoveInCollisionGoals BT node failed to call GetCost service of local or global costmap"); + "RemoveInCollisionGoals BT node failed to call GetCost " + "service of local or global costmap"); return BT::NodeStatus::FAILURE; } } else { diff --git a/nav2_costmap_2d/src/costmap_2d_ros.cpp b/nav2_costmap_2d/src/costmap_2d_ros.cpp index bd1167cf65..18d15525a5 100644 --- a/nav2_costmap_2d/src/costmap_2d_ros.cpp +++ b/nav2_costmap_2d/src/costmap_2d_ros.cpp @@ -851,8 +851,7 @@ void Costmap2DROS::getCostCallback( response->cost = collision_checker.footprintCostAtPose( request->x, request->y, request->theta, footprint); - } - else { + } else { RCLCPP_DEBUG( get_logger(), "Received request to get cost at point (%f, %f)", request->x, request->y);