Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
Signed-off-by: goes <[email protected]>
  • Loading branch information
goes authored and goes committed Jul 17, 2024
1 parent bf85646 commit 52e0c0e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 14 deletions.
3 changes: 1 addition & 2 deletions nav2_costmap_2d/plugins/inflation_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ InflationLayer::InflationLayer()

InflationLayer::~InflationLayer()
{
if(auto node = node_.lock())
{
if(auto node = node_.lock()) {
node->remove_on_set_parameters_callback(dyn_params_handler_.get());
}
dyn_params_handler_.reset();
Expand Down
3 changes: 1 addition & 2 deletions nav2_costmap_2d/plugins/obstacle_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ namespace nav2_costmap_2d

ObstacleLayer::~ObstacleLayer()
{
if(auto node = node_.lock())
{
if(auto node = node_.lock()) {
node->remove_on_set_parameters_callback(dyn_params_handler_.get());
}
dyn_params_handler_.reset();
Expand Down
3 changes: 1 addition & 2 deletions nav2_costmap_2d/plugins/static_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ StaticLayer::activate()
void
StaticLayer::deactivate()
{
if(auto node = node_.lock())
{
if(auto node = node_.lock()) {
node->remove_on_set_parameters_callback(dyn_params_handler_.get());
}
dyn_params_handler_.reset();
Expand Down
3 changes: 1 addition & 2 deletions nav2_costmap_2d/plugins/voxel_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ void VoxelLayer::onInitialize()

VoxelLayer::~VoxelLayer()
{
if(auto node = node_.lock())
{
if(auto node = node_.lock()) {
node->remove_on_set_parameters_callback(dyn_params_handler_.get());
}
dyn_params_handler_.reset();
Expand Down
3 changes: 1 addition & 2 deletions nav2_mppi_controller/src/parameters_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ ParametersHandler::ParametersHandler(

ParametersHandler::~ParametersHandler()
{
if(auto node = node_.lock())
{
if(auto node = node_.lock()) {
node->remove_on_set_parameters_callback(on_set_param_handler_.get());
}
on_set_param_handler_.reset();
Expand Down
3 changes: 1 addition & 2 deletions nav2_navfn_planner/src/navfn_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ NavfnPlanner::deactivate()
RCLCPP_INFO(
logger_, "Deactivating plugin %s of type NavfnPlanner",
name_.c_str());
if(auto node = node_.lock())
{
if(auto node = node_.lock()) {
node->remove_on_set_parameters_callback(dyn_params_handler_.get());
}
dyn_params_handler_.reset();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ void RotationShimController::deactivate()

primary_controller_->deactivate();

if(auto node = node_.lock())
{
if(auto node = node_.lock()) {
node->remove_on_set_parameters_callback(dyn_params_handler_.get());
}
dyn_params_handler_.reset();
Expand Down

0 comments on commit 52e0c0e

Please sign in to comment.