Working with TurtleBot in VR

We can start a TurtleBot simulation using the following command:

 $ roslaunch turtlebot_gazebo turtlebot_playground.launch

You will get the TurtleBot simulation in Gazebo like this:

TurtleBot simulation in Gazebo

You can move the robot by launching the teleoperation node with the following command:

$ roslaunch turtlebot_teleop keyboard_teleop.launch

You can now move the robot using the keyboard. Launch the app again and connect to the ROS master running on the PC. Then, you can remap the compressed Gazebo RGB image data into an app image topic, like this:

$ rosrun topic_tools relay /camera/rgb/image_raw/compressed /usb_cam/image_raw/compressed  

Now, what happens is that the robot camera image is visualized in the app, and if you put the phone into a VR headset, it will simulate a 3D environment. The following screenshot shows the split view of the images from Gazebo:

Gazebo image view in the ROS-VR app

You can now move the robot using a keyboard. In the next section, we will examine possible issues that you may encounter when you work with the application and their solutions.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.115.120