This warning:

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

is a common ROS (Robot Operating System) message indicating that ROS has generated a large amount of log data — more than 1 GB — which may be consuming unnecessary disk space.


🧰 What is rosclean?

rosclean is a ROS command-line tool used to clean up log files and other temporary data created by ROS nodes during execution.


🔍 Why This Warning Appears

Each time you run a ROS node using roslaunch or rosrun, ROS creates a new set of log files in:

/root/.ros/log

These logs are useful for debugging, but if you're running many experiments or long sessions, they can quickly accumulate and take up significant disk space.


✅ How to Fix It

Step 1: Check current log usage

You can check how much space the logs are currently taking with:

rosclean check

This will show you the total size of log directories.


Step 2: Clean the logs

To free up space, run: