ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
![]() | 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");
![]() | 2 | No.2 Revision |
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
![]() | 3 | No.3 Revision |
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
In newer ROS versions, it should be
export RCUTILS_LOGGING_USE_STDOUT=1 && export RCUTILS_LOGGING_BUFFERED_STREAM=1