Book Image

ROS Robotics Projects

Book Image

ROS Robotics Projects

Overview of this book

Robot Operating System is one of the most widely used software frameworks for robotic research and for companies to model, simulate, and prototype robots. Applying your knowledge of ROS to actual robotics is much more difficult than people realize, but this title will give you what you need to create your own robotics in no time! This book is packed with over 14 ROS robotics projects that can be prototyped without requiring a lot of hardware. The book starts with an introduction of ROS and its installation procedure. After discussing the basics, you’ll be taken through great projects, such as building a self-driving car, an autonomous mobile robot, and image recognition using deep learning and ROS. You can find ROS robotics applications for beginner, intermediate, and expert levels inside! This book will be the perfect companion for a robotics enthusiast who really wants to do something big in the field.
Table of Contents (20 chapters)
ROS Robotics Projects
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Working with TurtleBot simulation 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:

Figure 17: TurtleBot simulation in Gazebo

You can move the robot by launching the teleop 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 Gazebo RGB image compressed 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:

Figure 18: Gazebo image view in ROS-VR app

You can move the robot using a keyboard...