Skip to content

Commit

Permalink
[ParamLoader]: added backward compatibility macros
Browse files Browse the repository at this point in the history
  • Loading branch information
matemat13 committed Sep 9, 2024
1 parent 0b34026 commit 49d184a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# VIM swap files

*.swp
4 changes: 4 additions & 0 deletions include/fog_lib/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ namespace fog_lib
RCLCPP_ERROR_STREAM(node.get_logger(), "Could not load param '" << param_name << "': " << e.what());
return false;
}
#if ! defined(ROS_FOXY) && ! defined(ROS_GALACTIC)
catch (const rclcpp::exceptions::UninitializedStaticallyTypedParameterException& e)
{
RCLCPP_ERROR_STREAM(node.get_logger(), "Could not load param '" << param_name << "': " << e.what());
return false;
}
#endif
return true;
}

Expand All @@ -53,11 +55,13 @@ namespace fog_lib
RCLCPP_ERROR_STREAM(node.get_logger(), "Could not load param '" << param_name << "': " << e.what());
return false;
}
#if ! defined(ROS_FOXY) && ! defined(ROS_GALACTIC)
catch (const rclcpp::exceptions::UninitializedStaticallyTypedParameterException& e)
{
RCLCPP_ERROR_STREAM(node.get_logger(), "Could not load param '" << param_name << "': " << e.what());
return false;
}
#endif
return true;
}

Expand Down

0 comments on commit 49d184a

Please sign in to comment.