ROS(十一): rosclean的用法

学习ROS也有一段时间了,今天早上启动ROS master的时候出现了以下的WARNING:

felaim@felaim-PC:~$ cd catkin_ws/
felaim@felaim-PC:~/catkin_ws$ roscore
... logging to /home/felaim/.ros/log/c6072cec-6d12-11e8-8346-b01041523dc7/roslaunch-felaim-PC-2591.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
WARNING: disk usage in log directory [/home/felaim/.ros/log] is over 1GB.
It's recommended that you use the 'rosclean' command.

started roslaunch server http://felaim-PC:33793/
ros_comm version 1.11.21


SUMMARY
========

PARAMETERS
 * /rosdistro: indigo
 * /rosversion: 1.11.21

NODES

auto-starting new master
process[master]: started with pid [2603]
ROS_MASTER_URI=http://felaim-PC:11311/

setting /run_id to c6072cec-6d12-11e8-8346-b01041523dc7
process[rosout-1]: started with pid [2616]
started core service [/rosout]

后来在WIKI上查了一下,发现还有一个rosclean的命令,使用如下命令进行检查:

felaim@felaim-PC:~/catkin_ws$ rosclean check
//输出如下,检查log文档的使用情况
1.1G ROS node logs
140K rosmake logs
//移除对应的log文档
rosclean purge

//输出如下
PLEASE BE CAREFUL TO VERIFY THE COMMAND BELOW!
Okay to execute:

rm -rf /home/felaim/.ros/log
(y/n)?
y
Purging rosmake logs.
PLEASE BE CAREFUL TO VERIFY THE COMMAND BELOW!
Okay to execute:

rm -rf /home/felaim/.ros/rosmake
(y/n)?
y

//再次运行roscore
roscore
//输出就会如下,WARNING没了
Done checking log file disk usage. Usage is <1GB.

OK,周一早上解决个小问题O(∩_∩)O哈哈~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值