MATLAB® and Simulink® examples, reference applications, toolbox extensions, and competition kits for robotics and autonomous systems. The repositories cover robot manipulators, legged and mobile robots, ROS and ROS 2, drones, underwater vehicles, and off-road machines such as tractors, excavators, and haul trucks. MathWorks engineers publish them to accompany Robotics System Toolbox, ROS Toolbox, Navigation Toolbox, UAV Toolbox, and Simscape Multibody.
| Repository | What it is |
|---|---|
| awesome-matlab-robotics | A curated list of MATLAB and Simulink robotics examples, videos, add-ons, and community projects, sorted by application and toolbox. |
| mujoco-simulink-blockset | A Simulink blockset for MuJoCo physics models (MJCF), with actuator inputs, sensor buses, and RGB and depth cameras. |
| trajectory-planning-robot-manipulators | Task-space, joint-space, and time-scaled trajectory generation for a 7-DOF robot arm in MATLAB and Simulink. |
| msra-walking-robot | Bipedal walking robot modeling in Simscape Multibody, with gait optimization, ZMP and MPC walking patterns, and reinforcement learning. |
| Offroad-Navigation-for-Autonomous-Haul-Trucks | A planning and control stack that drives an autonomous haul truck through an open-pit mine, with an MPPI local planner and nonlinear MPC. |
R2026b adds off-road autonomy and new robot import options to Robotics System Toolbox, ROS 2 introspection and bag playback to ROS Toolbox, IMU models and GPS-denied navigation to Navigation Toolbox, and MAVLink microservices to UAV Toolbox. The R2026b release highlights cover every product.
- Tractors and haul trucks in Unreal Engine scenes. The Simulation 3D Agricultural Tractor and Simulation 3D Haul Truck blocks simulate these vehicles with ground following and output their ground-truth pose.
- Off-road vehicle library.
loadvehicleloads tractor, dump truck, and haul truck models as rigid body trees, with wheelbase and minimum turning radius. - Custom off-road vehicles and ground following. The Simulation 3D Offroad Vehicle block drives any rigid body tree, and ground-following blocks compute terrain-following poses from Unreal Engine scenes or a heightmap.
Documentation: Offroad Autonomy for Heavy Machinery and the autonomous haul truck example.
Related repositories: Offroad-Navigation-for-Autonomous-Haul-Trucks, autonomous-excavator, Tractor-Sprayer-Navigation-in-Vineyard.
- Joint and appearance options in robot import.
importrobotcan convert unsupported joints to floating joints instead of fixed ones, name joints after their Simscape blocks, and keep colors and textures from DAE and CAD files. - Penetration depth.
checkCollisionreturns penetration depth and witness points for colliding geometries. - Joint indices by name.
jointPositionFromBodyNameandjointPositionFromJointNamereturn the configuration index for a joint.
Related repositories: msra-walking-robot, designing-robot-manipulator-algorithms, intelligent-bin-picking-example-with-simulink.
- ROS 2 introspection from MATLAB. The
ros2function runs topic, node, service, action, and parameter introspection commands without a separate ROS 2 terminal. - Bag playback.
ros2bagplayerpublishes bag messages to a ROS 2 network, with topic filtering, seeking, and rate control. - Faster bag reading.
ros2bagreaderopens large bags faster by building its message index in the background. - Asynchronous ROS 2 subscribers. The ROS 2 Subscribe block can run asynchronously in generated code and process each message as it arrives, and ROS 2 blocks accept callback groups.
- Eclipse Zenoh.
rmw_zenoh_cppis available as a ROS 2 middleware option in ROS Toolbox preferences.
Related repositories: matlab-and-simulink-ros-tutorials, Support-and-Docker-Files-for-ROS-Toolbox, deep-learning-for-3D-object-detection.
- IMU models from datasheets.
loadimupartconfigures animuSensorfor a specific manufacturer and part number. - GPS-denied navigation. A new example shows terrain-aided inertial sensor fusion for pose estimation without GPS.
- RINEX 4.02 and faster grid planning.
rinexreadsupports RINEX 4.02, andplannerAStarGridplans about 2.3 times faster than in R2026a on the release notes' example map.
Related repositories: autonomous-navigation-ugv, mobile-robotics-simulation-toolbox.
- MAVLink microservices.
mavlinkmicroserviceexchanges heartbeats, commands, parameters, missions, and files with PX4 and ArduPilot, andmavlinkioconnects over serial ports. - ArduPilot. New blocks read ArduPlane estimator outputs, read and write parameters, communicate with I2C and serial peripherals, and log Simulink signals to DataFlash logs.
- PX4. Support adds PX4 Autopilot firmware v1.16.1, a preconfigured WSL environment, multi-instance uORB topics, and MDF logging.
Related repositories: scripts-patch-ardupilot-uav-toolbox, ardupilot, simulation-3d-joystick-calibrator.
- The
universalUR5emodel fromloadrobotuses new inertial parameters from the Universal Robots ROS 2 description, so dynamics results change. ros2bagreaderindexes in the background:NumMessageswaits for indexing when you filter by time.- The PX4 board option "PX4 Pixhawk Series" is now "PX4 Generic Board", with the same behavior.
addCustomTerrainreturns an error for an existing terrain name only whenNameExistsRuleis"error".
Full details are in the release notes for Robotics System Toolbox, ROS Toolbox, Navigation Toolbox, and UAV Toolbox.
- From Embodied Reasoning to Reliable Robot Actions with MATLAB: vision-language-action models and the engineering around them (July 2026).
- Robots That Adapt at Run Time Across Changing Configurations: robots that keep working through tool swaps and new workspace layouts (April 2026).
- Modeling Starts With the Question: model fidelity and abstraction for UAVs (January 2026).
- Why Digital Twins Are the Key to Safer, Smarter Offroad Machines: tractors, excavators, and haul trucks (August 2025).
- Building a Virtual Robot: A BEST Robotics Team's Journey with Simscape (November 2026).
- From Simulation to Reality: How UOS Robotics Won the RoboCup ARM Challenge 2026 (October 2026), with starter code in templates-robocup-robot-manipulation-challenge.
- Building Janus: How a FIRST Robotics Team Engineered a Championship Robot (July 2026).
- RoboSub Simulation Environment (March 2026), with the environment in RoboSub-Virtual-Environment.
| Repository | What it is |
|---|---|
| trajectory-planning-robot-manipulators | Trajectory generation for a 7-DOF arm in task space and joint space. |
| designing-robot-manipulator-algorithms | URDF import, inverse kinematics, Stateflow logic, and torque control of a 4-DOF arm with Simscape Multibody. |
| intelligent-bin-picking-example-with-simulink | Bin picking with a UR5e cobot in Simulink: task planning, perception, and CHOMP motion planning. |
| Intelligent-Bin-Picking-with-Universal-Robot | Bin picking in MATLAB: YOLO v4 detection, point cloud pose estimation, and RRT motion planning on a UR5e over ROS. |
| matlab-support-for-niryo-ned2-robots | MATLAB support for connecting to, controlling, and simulating a Niryo Ned2 educational arm. |
| mujoco-simulink-blockset | MuJoCo physics models in Simulink. |
| Repository | What it is |
|---|---|
| msra-walking-robot | Bipedal walking: Simscape Multibody model, gait optimization, ZMP and MPC, and reinforcement learning. |
| mobile-robotics-simulation-toolbox | 2D mobile robot kinematics, lidar and object detector simulation, and multi-robot visualization. |
| autonomous-navigation-ugv | An autonomous navigation stack for a differential-drive ground vehicle, in simulation and with a TurtleBot3 in Gazebo. |
| robotics-playground | Virtual robot environments and sensors in Simulink for teaching driver control, autonomy, and obstacle avoidance. |
| Repository | What it is |
|---|---|
| Offroad-Navigation-for-Autonomous-Haul-Trucks | Planning and control for an autonomous haul truck in an open-pit mine. |
| autonomous-excavator | A virtual testbench for an autonomous excavator: lidar in Unreal Engine, arm path planning, and a hydraulic Simscape arm. |
| Tractor-Sprayer-Navigation-in-Vineyard | Simulink navigation for a sprayer-equipped tractor driving between vineyard rows in Unreal Engine. |
| Repository | What it is |
|---|---|
| matlab-and-simulink-ros-tutorials | ROS 2 basics in MATLAB and Simulink: nodes, topics, services, bags, custom messages, and deployment. |
| getting-started-ros | Structuring MATLAB and Simulink code around ROS 1 topics, parameters, and standalone nodes. |
| Support-and-Docker-Files-for-ROS-Toolbox | Dockerfiles and Gazebo worlds that give ROS Toolbox examples a ROS 1 Noetic or ROS 2 Jazzy network. |
| object-tracking-using-ros-and-simulink-on-raspberry-pi | Object tracking on a Raspberry Pi: a vision-and-control algorithm deployed from Simulink as a ROS node. |
| ros-control | A ros_control controller plugin that wraps Simulink-generated C++. |
| Repository | What it is |
|---|---|
| deep-learning-for-object-detection-yolov2 | YOLO v2 object detection: training, simulation in Simulink, and deployment to NVIDIA Jetson. |
| deep-learning-for-3D-object-detection | PointPillars lidar object detection, from point clouds to a generated ROS 2 node. |
| ai-robotics-workshop | AI-based mobile robot development, from synthetic images to deployment on an NVIDIA JetBot. |
| obstacle-avoidance-using-camera | Optical-flow obstacle avoidance for a drone in a 3D virtual world. |
| Repository | What it is |
|---|---|
| scripts-patch-ardupilot-uav-toolbox | Scripts that patch ArduPilot Copter and Plane to build with Simulink-generated flight code. |
| ardupilot | MathWorks branches proposed upstream to ArduPilot. |
| simulation-3d-joystick-calibrator | A one-time joystick or RC transmitter calibration shared by fixed-wing, multirotor, and helicopter simulations. |
| modeling-and-simulation-of-an-AUV-in-Simulink | Autonomous underwater vehicle design in Simulink, from requirements to hydrodynamics, control, and visualization. |
| Repository | Competition |
|---|---|
| templates-robocup-robot-manipulation-challenge | RoboCup ARM Challenge |
| RoboSub-Virtual-Environment | RoboSub |
| developing-swerve-robot-drivetrains | FIRST Robotics and other swerve-drive teams |
| controller-for-autonomous-boats | RobotX |
| Virtual-Environment-for-SAE-Aero-Design- | SAE Aero Design |
| robotics-playground | BEST Robotics |
More competitions and software offers are on Competitions and Hackathons.
awesome-robotics-teaching lists MATLAB and Simulink robotics curriculum, courses, and hardware by topic and level.
- Ask questions on MATLAB Answers.
- Report a problem with an example as an issue in its repository.
- See MATLAB and Simulink for Robotics and Autonomous Systems for products, customer stories, and training.