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.
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.
Fusion of Radar and Lidar Data Using ROS
Perform track-level sensor fusion on recorded lidar sensor data for a driving scenario recorded on a rosbag.
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.
Generate a Standalone ROS Node from MATLAB®
This example shows how to generate C++ code for a standalone ROS node from a MATLAB function.
MATLAB Programming for Code Generation
This example shows the recommended workflow for generating a standalone executable from MATLAB® code that contains ROS interfaces.
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.
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.
In this example, you explore autonomous behavior that incorporates the Kinect® camera.