Permission denied when trying to run PX4 roslaunch file
When I'm trying to run PX4 multi_uav_mavros_sitl.launch file it throws permission denial errors and kills the processes like this:
[rospack] Unable to create temporary cache file /home/kris/.ros/.rospack_cache.nJAzB8: Permission denied
[uav0/sitl_0-3] process has died [pid 5203, exit code 255, cmd /home/kris/Pobrane/src/Firmware/build/px4_sitl_default/bin/px4 /home/kris/Pobrane/src/Firmware/ROMFS/px4fmu_common -s etc/init.d-posix/rcS -i 0 -w sitl_iris_0 -d __name:=sitl_0 __log:=/home/kris/.ROS_log/4da30ac2-15d2-11ea-bd56-080027229f95/uav0-sitl_0-3.log].
log file: /home/kris/.ROS_log/4da30ac2-15d2-11ea-bd56-080027229f95/uav0-sitl_0-3*.log
my system:
- ROS Melodic (supplied with PX4 stack)
- Ubuntu 18.04 LTS x64 (kernel: 5.0.0-36-generic)
ROS enviroment variables:
ROS_ETC_DIR=/opt/ros/melodic/etc/ros
ROS_ROOT=/opt/ros/melodic/share/ros
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1
ROS_PYTHON_VERSION=2
ROS_PACKAGE_PATH=/home/kris/catkin_ws/src/mavlink:/home/kris/catkin_ws/src/mavros/libmavconn:/home/kris/catkin_ws/src/mavros/mavros_msgs:/home/kris/catkin_ws/src/mavros/mavros:/home/kris/catkin_ws/src/mavros/mavros_extras:/home/kris/catkin_ws/src/mavros/test_mavros:/opt/ros/melodic/share
ROSLISP_PACKAGE_DIRECTORIES=/home/kris/catkin_ws/devel/share/common-lisp
ROS_DISTRO=melodic