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:

Controlling a ROS robot from MATLAB

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 ...

Get ROS Robotics Projects now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.