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

Revision history [back]

Try xrgtn/nullfs. I tried xrgtn/nullfs with raspberry pi 4, ubuntu20.04 and ros2 foxy. It worked fine.

Detail procedure to install and test xrgtn/nullfs as follows.

(1)Install xrgtn/nullfs
sudo apt update
sudo apt install -y git libfuse-dev build-essential
git clone https://github.com/xrgtn/nullfs
cd nullfs/
make nullfs

(2)Make nullfs directry
mkdir ~/nulldir
./nullfs ~/nulldir/

(3)Change ROS_LOG_DIR
Add folowing lines at the end of ~/.bashrc
export ROS_LOG_DIR=~/nulldir
~/nullfs/nullfs ~/nulldir

(4)Test
source ~/.bashrc
Run any ROS/ROS2 program and check that no files in ~/.ros/log and ~/nulldir.