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 Simulated TurtleBot and Get Started with a Real TurtleBot.
Topics
ROS Applications
- Sign Following Robot with Time Synchronization Using ROS and Gazebo Co-Simulation
This example shows how to use Simulink® to enable synchronized simulation between ROS and the Gazebo robot simulator using the Gazebo Pacer (Robotics System Toolbox) block. - Pick-and-Place Workflow in Unity 3D Using ROS
This example shows how to set up an end-to-end pick-and-place workflow for a robotic manipulator like the KINOVA® Gen3, and simulate the robot in the Unity® game engine. - Sign Following Robot with ROS in MATLAB
Use MATLAB® to control a simulated robot running on a separate ROS-based simulator over a ROS 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. - Generate ROS Node for UAV Waypoint Follower
This example shows how to use MATLAB® code generation to create a ROS node to move an unmanned aerial vehicle (UAV) along a predefined circular path and a set of specified custom waypoints. - Generate a ROS Control Plugin from Simulink®
This example shows how to generate and build a ros_control plugin from a Simulink model. - Lane and Vehicle Detection in ROS Using YOLO v2 Deep Learning Algorithm
This example shows how to use deep convolutional neural networks inside a ROS enabled Simulink® model to perform lane and vehicle detection. - Control a Simulated UAV Using ROS 2 and PX4 Bridge
This example demonstrates how to receive sensor readings and autopilot status from a simulated UAV with PX4 autopilot, and send control commands to navigate the simulated UAV. - 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. - 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. - 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.
Gazebo
- Get Started with Gazebo and 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 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 theExampleHelperTurtleBotCommunicator
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.