We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f80369 commit 9aea8e7Copy full SHA for 9aea8e7
controller_manager/src/controller_manager.cpp
@@ -745,6 +745,14 @@ void ControllerManager::init_resource_manager(const std::string & robot_descript
745
get_logger(), "Component name is empty, skipping statistics registration for it.");
746
continue;
747
}
748
+ if (!component_info.read_statistics && !component_info.write_statistics)
749
+ {
750
+ RCLCPP_WARN(
751
+ get_logger(),
752
+ "Component '%s' does not have read or write statistics initialized, skipping registration.",
753
+ component_name.c_str());
754
+ continue;
755
+ }
756
RCLCPP_INFO(get_logger(), "Registering statistics for : %s", component_name.c_str());
757
const std::string read_cycle_exec_time_prefix =
758
component_name + ".stats/read_cycle/execution_time";
0 commit comments