Function rclcpp::get_node_logger

Function Documentation

Logger rclcpp::get_node_logger(const rcl_node_t *node)

Return a named logger using an rcl_node_t.

This is a convenience function that does error checking and returns the node logger name, or “rclcpp” if it is unable to get the node name.

Parameters:

node[in] the rcl node from which to get the logger name

Returns:

a logger based on the node name, or “rclcpp” if there’s an error