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

Managing log files

asked 2015-03-24 19:00:40 -0600

pwong gravatar image

updated 2015-10-09 10:47:28 -0600

I've noticed that every time I have a new node subscribe to a topic, a new file gets created on .ros/log called rostopic_xxxx_xxxxxxxxxxxxx.log

I run rosbag at 1 minute intervals so I create a ton of files, to a point where a rm rostopic* would fail because there are so many files. This folder just gets to be so clustered that if I try to use it when I need it, I have a hard time finding what I need.

Here are a few specific questions I would like to ask about managing the logging:

  1. Is there a way to limit writing of the rostopic_xxxx_xxxxxxxxxxxxx.log files?

  2. Whats the reason for the rostopic.log files to not get written into folders?

  3. Is there something built in I can configure without writing a script to manage the files?

  4. When does a new folder like ~/.ros/log/fdfa58c8-cf58-11e4-b18e-78d00420d50e get written?

I'll edit the post as I find out more about it.

Thanks!

Edit:

Long since I've made the question, but I have learned more about it since. Here's a couple answers I've figured out.'

  1. rostopic.log is created every time an 'rostopic echo' is called, or running a node. Only when ros is run through roslaunch, all of the nodes are inside a folder.

  2. Just better house keeping with rosclean worked out for me.

  3. See answer 1.

edit retag flag offensive close merge delete

Comments

1

It's worth posting your findings into the answer section, even though it's your self-answer.

130s gravatar image 130s  ( 2015-10-10 10:06:54 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-10-10 10:26:01 -0600

130s gravatar image

updated 2015-10-10 10:26:26 -0600

4 When does a new folder like ~/.ros/log/fdfa58c8-cf58-11e4-b18e-78d00420d50e get written?

I could be wrong but it's when a node rosout started, which is included in the processes roscore starts.

Btw maybe nice thing to know is with a recent change ~/.ros/log/latest folder always gets created so that you won't need to find the latest log folder.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2015-03-24 19:00:40 -0600

Seen: 2,306 times

Last updated: Oct 10 '15