diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..87da845 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# VIM swap files + +*.swp diff --git a/include/fog_lib/params.h b/include/fog_lib/params.h index 34f7ab6..84f60aa 100644 --- a/include/fog_lib/params.h +++ b/include/fog_lib/params.h @@ -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; } @@ -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; }