mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-05 20:47:46 +08:00
ignore undeclare paramer exception
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user