Skip to main content
2 votes
Accepted

How can I disable all logging to files under ~/.ros but still log to stderr?

You can disable node log output with cli argument --disable-external-lib-logs, e.g.: ...
JRTG's user avatar
  • 2,749
2 votes
Accepted

What is the time base of ros2 loggers?

The logging output handler is called here and is passed a time variable now as an argument. now is initialized here by call of <...
JRTG's user avatar
  • 2,749
1 vote
Accepted

Changing time format on RCUTILS_CONSOLE_OUTPUT_FORMAT

A full time spec, as you wrote in your example, is not possible. However, since ROS 2 Jazzy, there is an extra format specifier date_time_with_ms which gives ...
JRTG's user avatar
  • 2,749
1 vote

How to change logging directory in ROS Python?

Can you try to export it in your ~/.bashrc file? nano ~/.bashrc ...
yigitboracagiran's user avatar
1 vote

How to print node crash message "process has died" in red

Have you tried designating the log you want as the 'RCLCPP_ERROR' log level? If you do that, it will be displayed in the same color as RCLCPP_ERROR as you said.
reason_rock's user avatar
1 vote

Is it possible to record or log specific topics in ROS2 without publishing?

If there is no need to publish other than to log, you can directly write the messages to a bag instead, see the tutorial here. An alternatively idea (just an idea, not tested) is to add a "logger ...
JRTG's user avatar
  • 2,749
1 vote
Accepted

How to specify the datetime format for ros2 logs?

See here for the list of currently supported format tokens and the respective formatting handler functions. Wrt. time, the only formats are: {time}, which installs a formatting handler ...
JRTG's user avatar
  • 2,749
1 vote

What are these log files(python3_657059_1698250083616.log) and how can I disable them?

Using lsof /home/username/.ros/log/* I found the offending process pid with pwdx pid I found ...
Hakaishin's user avatar
  • 135
1 vote

Best practice for logging callback durations and execution times in ROS

I think the functionality you are looking for is provided by ros2_tracing. For a quick overview have a look at the ROS World 2021 presentation: video, slides.
JRTG's user avatar
  • 2,749
1 vote
Accepted

No stdout logging output in ROS2 using launch

This turned out to be connected with the known issue of subprocesses from launch having their stdout streams buffered (https://github.com/ros2/launch/issues/188). There is a ...
phobon's user avatar
  • 280

Only top scored, non community-wiki answers of a minimum length are eligible