This Docker image is tailored for running ROS1 Noetic with support for GUI applications and the Xbox 360 Kinect Depth Camera. It includes tools such as RViz, Gazebo, and the ability to view the Kinect's depth camera feed using RViz.
docker build -t noetic_working -f Dockerfile-ros-noetic .
docker run -it --name noetic-container --user vipul --ipc=host --privileged -v /dev:/dev -v /sys:/sys -v /tmp/.X11-unix:/tmp/.X11-unix:rw --env=DISPLAY noetic_working
Change vipul with --> your_user_name
docker start -ai noetic-container
docker exec -it noetic-container /bin/bash
This error occurs when bash cannot find RViz. To solve this, source the underlay:
source /opt/ros/noetic/setup.bash
This occurs as non-root doesn't have access to our workspace To give access to non-root users, enter the following command
sudo chown -R vipul:vipul /home/vipul/catkin_ws
Change vipul with --> your_user_name
3. RLException: [freenect.launch] is neither a launch file in package [freenect_launch] nor is [freenect_launch] a launch file name. The traceback for the exception was written to the log file
Source the catkin workspace setup file:
source ~/catkin_ws/devel/setup.bash
Note: This works only if the non-root user has access to the catkin workspace.
Resource not found: rgbd_launch
ROS path [0]=/opt/ros/noetic/share/ros
ROS path [1]=/home/inaciose/catkin_ws/src
ROS path [2]=/opt/ros/noetic/share
The traceback for the exception was written to the log file
sudo apt-get install ros-noetic-rgbd-launch
sudo apt-get update
Special thanks to Articulated Robotics for their valuable insights and guidance on Docker using ROS.