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

What will happen if I run 'rosclean purge'?

asked 2020-01-30 23:34:15 -0600

kane_choigo gravatar image

updated 2020-01-31 02:58:49 -0600

gvdhoorn gravatar image

Hello, I'm using ROS kinetic on ununtu 16.04.

This question might not be serious, and it does not bring up any other problems.

I got the following warning every time when my roscore runs:

WARNING: disk usage in log directory [/home/robotics/.ros/log] is over 1GB.
It's recommended that you use the 'rosclean' command.

I also referenced to this issue, but I just afraid this command might spoil my ROS system in some ways.

The above instruction says maybe rosclean purge can remove that warning, but I'm not still sure. Would it truely going to be ok if I run rosclean purge?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
7

answered 2020-01-31 00:04:26 -0600

Yes, what that's going to do is remove the ROS logs from your .ros/log directory. When packages print to screen or have debug messages, they also get logged in that directory.

Over time if nothing empties them, it'll keep piling up. This warning is to let you know that there are alot of logs laying around, and you may want to get rid of them so they don't keep growing.

All that rosclean purge does is remove those files.

edit flag offensive delete link more

Comments

Thank you, it works without any issues!

kane_choigo gravatar image kane_choigo  ( 2020-01-31 00:31:36 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2020-01-30 23:34:15 -0600

Seen: 7,965 times

Last updated: Jan 31 '20