51 static rclcpp::Logger logger = [&] {
55 auto name = fmt::format(
"moveit_{}", rsl::rng()());
58 static auto* moveit_node =
new rclcpp::Node(name);
59 return moveit_node->get_logger();
61 catch (
const std::exception& ex)
64 auto logger = rclcpp::get_logger(name);
65 RCLCPP_WARN_STREAM(logger,
"exception thrown while creating node for logging: " << ex.what());
66 RCLCPP_WARN(logger,
"if rclcpp::init was not called, messages from this logger may be missing from /rosout");