Skip to content

Commit fb72601

Browse files
committed
remove try catches
1 parent b0f3357 commit fb72601

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

rerun_bridge/src/rerun_bridge/visualizer_node.cpp

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -242,36 +242,11 @@ void RerunLoggerNode::_read_yaml_config(std::string yaml_path) {
242242
if (urdf_file_path.size()) {
243243
RCLCPP_INFO(
244244
this->get_logger(),
245-
"Logging URDF from file path %s using native Rerun 0.24.0+ URDF loader",
245+
"Logging URDF from file path %s",
246246
urdf_file_path.c_str()
247247
);
248-
try {
249-
// Log URDF file using Rerun 0.24.0+ native URDF support
250-
// The static=true parameter ensures the URDF is logged as a static resource
251-
_rec.log_file_from_path(urdf_file_path, urdf_entity_path, true);
252-
RCLCPP_INFO(
253-
this->get_logger(),
254-
"Successfully logged URDF file to entity path: %s",
255-
urdf_entity_path.empty() ? "default" : urdf_entity_path.c_str()
256-
);
257-
} catch (const std::exception& e) {
258-
RCLCPP_ERROR(
259-
this->get_logger(),
260-
"Failed to log URDF file: %s",
261-
e.what()
262-
);
263-
}
264-
} else {
265-
RCLCPP_WARN(
266-
this->get_logger(),
267-
"URDF file path resolved to empty string"
268-
);
248+
_rec.log_file_from_path(urdf_file_path, urdf_entity_path, true);
269249
}
270-
} else {
271-
RCLCPP_WARN(
272-
this->get_logger(),
273-
"URDF configuration found but no file_path specified"
274-
);
275250
}
276251
}
277252
}

0 commit comments

Comments
 (0)