Is it possible to send ROS_INFO data to multiple custom log files?

asked 2021-01-31 12:55:25 -0500

System: Ubuntu 18.04.5, ROS::Melodic

Problem Statement: I am working on turtlebot3's code. I have the file called turtlebot3_drive.cpp in ~/catkin_ws/src/turtlebot3_simulations/turtlebot3_gazebo/src/ (This file is present there by default.). Now I put ROS_INFO("some information %f ", some_local_variable) in the odomCallBack and laserScanCallback functions. How can I have these 2 ROS_INFOs output their data to 2 separate log files, 1 for Odom_Log and other for LaserScan_Log ??

Code for turtlebot3_drive.cpp: https://docs.ros.org/en/api/turtlebot...

(it can also be found in ~/catkin_ws/src/turtlebot3_simulations/turtlebot3_gazebo/src/)

Thanks in advance.

~Hetal

edit retag flag offensive close merge delete