Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Turns out loggers can be created on the fly with rclcpp::get_logger for your logging purposes. e.g.

RCLCPP_INFO(rclcpp::get_logger("my_logger"), "my_message");

Turns out loggers can be created on the fly with rclcpp::get_logger for your logging purposes. e.g.

RCLCPP_INFO(rclcpp::get_logger("my_logger"), "my_message");

Also, remember to set the following if you're not seeing any log outputs (took me way too long to figure it out...)

export RCUTILS_CONSOLE_STDOUT_LINE_BUFFERED=1