ROS Application Examples

Simulate ROS and Gazebo applications, connect to TurtleBot® hardware

These examples show how to build specific applications for ROS, real robots, and simulators. Use them to learn the requirements for physical hardware and software simulation systems. For robot setup information, see Get Started with Gazebo and a Simulated TurtleBot and Get Started with a Real TurtleBot.

Topics

ROS Applications

Feedback Control of a ROS-Enabled Robot

Use Simulink® to control a simulated robot running in a separate ROS-based simulator.

Feedback Control of a ROS-enabled Robot over ROS 2

This example shows you how to use Simulink® to control a simulated robot running in a Gazebo® robot simulator over ROS 2 network.

Automated Parking Valet with ROS in MATLAB

This example shows how to distribute the Automated Parking Valet (Automated Driving Toolbox) application among various nodes in a ROS network.

Sign Following Robot with ROS in MATLAB

This example shows you how to use MATLAB® to control a simulated robot running on a separate ROS-based simulator over a ROS network.

Gazebo

Get Started with Gazebo and a Simulated TurtleBot

This example shows how to set up the Gazebo® simulator engine.

Add, Build, and Remove Objects in Gazebo

This example explores more in-depth interaction with the Gazebo® Simulator from MATLAB®.

Apply Forces and Torques in Gazebo

This example illustrates a collection of ways to apply forces and torques to models in the Gazebo® simulator.

Test Robot Autonomy in Simulation

This example explores MATLAB® control of the Gazebo® Simulator.

TurtleBot

Get Started with a Real TurtleBot

This example shows how to connect to a TurtleBot® using the MATLAB® ROS interface.

Get Started with Gazebo and a Simulated TurtleBot

This example shows how to set up the Gazebo® simulator engine.

Communicate with the TurtleBot

This example introduces the TurtleBot® platform and the ways in which MATLAB® users can interact with it.

Explore Basic Behavior of the TurtleBot

This example helps you to explore basic autonomy with the TurtleBot®.

Control the TurtleBot with Teleoperation

This example shows keyboard control of the TurtleBot® through the use of the ExampleHelperTurtleBotCommunicator class.

Obstacle Avoidance with TurtleBot and VFH

This example shows how to use a TurtleBot® with Vector Field Histograms (VFH) to perform obstacle avoidance when driving a robot in an environment.

Track and Follow an Object

In this example, you explore autonomous behavior that incorporates the Kinect® camera.