How to add a singleton logger class to my package?

asked 2018-03-13 07:37:48 -0500

Steve_RosUsr gravatar image

Hy all!

I am writing my thesis work in ROS. I have to implement a logger feature: the node must create a log file after every execution with the the specified data. ROS_INFO and other ros-based logging method is NOT GOOD. I want to write these informations to an output file.

I have an already written Singleton class from here.

What changes do I have to do in the CMakeList and package.xml file to work with this solution??

Or is there any chance to use ROS_INFO logging system to write to a SPECIFIED file??

Thanks in advance! Steve

edit retag flag offensive close merge delete