ignore undeclare paramer exception

This commit is contained in:
Joe Dong
2023-02-20 13:58:37 +08:00
parent 970e7311ba
commit d64e28f9fd
3 changed files with 21 additions and 17 deletions
+2
View File
@@ -41,6 +41,8 @@ Parameters::~Parameters() noexcept {
try {
node_->undeclare_parameter(param.first);
} catch (const rclcpp::exceptions::InvalidParameterTypeException &e) {
// ignore
} catch (const std::exception &e) {
RCLCPP_ERROR_STREAM(logger_, e.what());
}
}