ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to make node outpus into log file?

asked 2020-08-19 08:36:11 -0500

make9-11@126.com gravatar image

When I use ros-kinetic to output some logs output on screen ,but I want it also saved in a log file,How should I do ? I found the a log file named rosout.log contain the outputs,in the wiki I saw the node will have a node log file ,where can I find it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-08-19 20:16:01 -0500

praskot gravatar image

You can find the logs here: /home/$USER/.ros/log

edit flag offensive delete link more

Comments

under the dir,I could see some logs like stdoutxxx.log,roslaunchxxxx.log,master.log,but I want my node`s message can also saved as mynode.log,not only in the stdout.log.

make9-11@126.com gravatar image make9-11@126.com  ( 2020-08-19 21:59:12 -0500 )edit

and I found that fi write the node with python,so the output will write into a log file name node_xxxx.log,but c++ not !

make9-11@126.com gravatar image make9-11@126.com  ( 2020-08-20 08:48:57 -0500 )edit

I'm not sure about the individual node log. But before that, to avoid an xyproblem what is the actual goal you are trying to achieve by saving this log file.

praskot gravatar image praskot  ( 2020-08-20 18:19:10 -0500 )edit

Question Tools

Stats

Asked: 2020-08-19 08:36:11 -0500

Seen: 289 times

Last updated: Aug 19 '20