Robotics StackExchange | Archived questions

rosout.log contains too much information

Hi. I am using ROS1 Noetic.

Our robot has many nodes running, and the logs files are filled quickly. When I check the content in rosout.log.x , I see the INFO and WARN messages sent by code, which is good.

But there are also lists of related topics included, which is not needed in our case. So I am wondering why there are topics names being saved and how to keep them out of the log files? And is it possible to make the logger skipping the topics name section?

Thanks!

Here are two examples. I highlighted the topic parts in bold. These two are actually the short ones, there are some much longer ones. And this happens to every line in the log file.

1667074094.826373338 INFO /navstatenode [navstatenode.py:100(NavStateNodeClass.appEstopPauseCb)] [topics: /constantPublisher, /rosout, /nav/state, /nav/running, /roboteqestop_pressed, /nav/pauseByAppEstop, /nav/appCommands, /appDialogs] Receive App estop: False

1667074094.832785434 INFO /roboteqmotorcontrollerdriver [........./src/roboteqmotorcontrollerdrivernode.cpp:105(cmdvelcallback)] **[topics: /rosout, /batteryamps, /encodercount, /hallcount, /motoramps, /motorcommand, /motorfaultflag, /motorinputstatusflag, /motorpower, /motorruntimeerror, /motorspeed, /motortemperature, /motorvolts, /read]** !G 1 0!G 2 0_

Asked by Mingjie on 2022-11-03 13:59:33 UTC

Comments

Answers