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

Controlling a ROS robot from MATLAB


Here is an interesting MATLAB GUI application that uses ROS APIs to remotely control a robot. The final application will look like the following:

Figure 13: MATLAB-ROS application GUI

In this application, we can put in the ROS master IP, port, and the teleop topic of the robot in its GUI itself. When we press the connect button, the MATLAB application will connect to the ROS network. Now, we can move the robot by pressing the Forward, Backward, Left, and Right buttons.

Here is the design block diagram of this application:

Figure 14: MATLAB-ROS application design block diagram

So let's look at how we can build an application like this.

Here are some of the frequently asking questions in ROS-MATLAB interface

  1. How to run multiple ROS nodes in MATLAB?

    Yes, we can run multiple ROS nodes in MATLAB. The following command in MATLAB will give you an example to do it.

    >>>openExample('robotics/RunMultipleROSNodesToPerformDifferentTasksExample')
    
  2. Does MATLAB support...