Why don't Log outputs end up in Bags? Can I force them to?
I am a big fan of rosbags. Right now I am doing a series of pretty complex tests on some mobile robots. I like to bag everything for each test, so that I can go back and review what happened to catch bugs. Rqt_bag's visualization capabilities make debugging certain aspects of my system extremely easy. However, I am continually frustrated that Log information produced by calls to ROS_ERROR(), ROS_INFO(), ROS_DEBUG(), etc. does not appear to be stored in my bag files. I can see that rosout has messages publish in it similar to:
- header
- level: 8
- name: /PelicanMMS
- file: /asctec/PelicanMMS/PelicanROS/src/VTOL...
- function: startHandler
- line: 38
- topics
This can point me to the exact origin of one of my debug calls, but it does not contain the actual text of the call! I know that the text from my log calls can be found in the generated log files, or captured with rqt_console; but, I want the logging text stored in my bag. My questions are:
Is there some system setting or configuration that I could specify to make the text logging information get bagged? If this is impossible, is there a simple work around?