In this section, we will look at how to create a VR experience in ROS, especially in robotics simulators such as Gazebo. Luckily, we have an open source Android project called ROS Cardboard (https://github.com/cloudspace/ros_cardboard). This project is exactly what we want we want for this application. This application is based on ROS-Android APIs, which help us to visualize compressed images from a ROS PC. It also does the splitting of the view for the left and right eye, and when we put this on a VR headset, it will feel like 3D.
Here is a diagram that shows how this application works:
From the preceding diagram, you can see that the image topic from Gazebo can be accessed from a ROS environment, and the compressed version of that image is sent to the ROS-VR app, which will split the view...