Robotics Tutorial
Learn Robotics step by step: 38 lessons in 9 chapters with examples, quizzes, diagrams and projects.
Start learning →
of lessons completed
Getting Started
- Introduction to Robotics Learn what a robot is, the sense-think-act loop that every robot runs, a short history of robotics, and simulate your first robot control loop in Python.
- Types of Robots A tour of the main robot families (industrial arms, wheeled and legged robots, drones, humanoids, soft and swarm robots) and how to choose one for a task.
- Robot Components Meet the building blocks of every robot: structure, actuators, sensors, controllers, power and communication, and estimate a robot's battery life in Python.
- Degrees of Freedom and Workspace Understand degrees of freedom, revolute and prismatic joints, the Grubler formula, configuration space and reachable workspace, with Python plots of a two-link arm.
Kinematics
- Rotations and Transforms Describe position and orientation with vectors, rotation matrices, homogeneous transforms, Euler angles and quaternions, and chain frames in NumPy.
- Forward Kinematics Compute where a robot arm's end effector is from its joint angles: planar two-link and three-link arms, Denavit-Hartenberg parameters and a 3D arm in NumPy.
- Inverse Kinematics Solve inverse kinematics for robot arms: the closed-form two-link solution with elbow up and down, reachability checks, and numerical IK with the Jacobian transpose and damped least squares.
- Jacobian and Velocity Kinematics Relate joint speeds to tip speed with the Jacobian matrix, find singularities, measure manipulability, and map tip forces to joint torques using Python.
- Mobile Robot Kinematics Model wheeled robots: differential-drive and bicycle kinematics, turning radius, dead-reckoning odometry from wheel encoders, and why odometry drifts, with Python plots.
Sensors and Perception
- Sensors and Noise Learn how robot sensors work and why their data is imperfect: sensor types, accuracy versus precision, noise, bias, quantization, filtering and calibration in Python.
- Distance Sensors: Ultrasonic, IR and Lidar How ultrasonic, infrared, time-of-flight and lidar sensors measure distance, their limits, and how to turn a lidar scan into obstacle points in Python.
- Inertial Sensors (IMU) Learn how accelerometers, gyroscopes and magnetometers measure motion and orientation, why gyro angles drift, and compute tilt from gravity in Python.
- Cameras and Computer Vision Understand how robot cameras work: the pinhole model, projecting 3D points, color blob detection, edge detection by convolution and depth from stereo, in NumPy.
- Sensor Fusion Combine noisy sensors into one good estimate: weighted averaging, the complementary filter for IMU tilt and a one-dimensional Kalman filter, with runnable Python.
Actuators and Control
- Motors and Actuators Learn how DC, servo, stepper and brushless motors work, what torque, speed and gear ratio mean, how PWM controls speed, and simulate a DC motor in Python.
- PID Control Learn feedback control and PID: proportional, integral and derivative terms, tuning, anti-windup and derivative filtering, with a runnable motor simulation.
- Trajectory Generation Generate smooth robot motion in time: cubic and quintic polynomials, trapezoidal velocity profiles, multi-point paths and synchronized joints, with Python plots.
- Mobile Robot Control Control wheeled robots: go-to-goal with heading error, line following with PID, pure pursuit path tracking and a speed limiter, simulated in Python.
Path Planning
- Configuration Space and the Planning Problem Learn what motion planning solves, how configuration space turns a robot into a point, and how obstacles grow in C-space, with runnable Python examples.
- Grid Search: BFS and Dijkstra for Robot Paths Plan robot paths on an occupancy grid with breadth-first search and Dijkstra's algorithm, handle terrain costs and diagonal moves, in runnable Python.
- A* Path Planning for Robots Understand A* search: the f = g + h rule, admissible heuristics, tie-breaking and weighted A*, and compare it with Dijkstra in runnable Python.
- Potential Fields and Bug Algorithms Steer a robot with attractive and repulsive potential fields, see the local-minimum trap, and learn simple reactive Bug algorithms, with runnable Python.
- Sampling-Based Planning: PRM and RRT Plan paths in high-dimensional spaces with random sampling. Build a Probabilistic Roadmap and an RRT in Python, and learn RRT*, bias and completeness.
- Trajectory Generation and Path Smoothing Turn a jagged path into a smooth, timed trajectory with shortcutting, cubic and quintic polynomials and trapezoidal velocity profiles, in runnable Python.
Localization and Mapping
- Probability and the Bayes Filter for Robots Learn why robots must reason with uncertainty, then build a discrete Bayes filter that locates a robot in a corridor from noisy door sensing, in Python.
- The Kalman Filter for Robots Understand the Kalman filter as a Bayes filter with Gaussians. Build 1D and 2D constant-velocity filters in Python and learn about EKF and tuning Q and R.
- Particle Filter and Monte Carlo Localization Learn Monte Carlo localization with a particle filter: sample, move, weight, resample. Build a 2D range-landmark localizer in Python and tune it.
- Occupancy Grid Mapping Build an occupancy grid map from range scans with ray tracing and log-odds updates. Learn the inverse sensor model, resolution trade-offs and map formats.
- SLAM Explained: Mapping While Localizing Understand Simultaneous Localization and Mapping, why odometry drifts, how loop closure fixes it, and build a tiny pose-graph optimizer in Python.
ROS and Software Architecture
- ROS 2 Concepts: Nodes, Topics, Services, Actions Learn the core ideas of ROS 2: nodes, topics, services, actions, parameters, launch files, tf and QoS, with runnable Python stand-ins of the message patterns.
- ROS 2 in Code: Publishers, Subscribers and Services Write ROS 2 nodes in Python with rclpy: publisher, subscriber, timer, service, parameters and a launch file. Includes a runnable mini-ROS stand-in for practice.
- Robot Software Architecture and Behavior Design Compare sense-plan-act, subsumption and hybrid architectures, then build a finite state machine and a behavior tree in runnable Python for a patrol robot.
Applications and Safety
- Robot Applications Across Industries Tour where robots work today: factories, warehouses, medicine, agriculture, drones, space and homes, plus how to size a robot system with simple numbers.
- Robot Safety, Standards and Ethics Learn how to make robots safe: hazards, risk assessment, e-stops, speed and separation monitoring, watchdogs, standards such as ISO 10218, and ethics.
Projects and Practice
- Project: A Grid Delivery Robot That Replans Build a simulated delivery robot: plan with A*, drive with a proportional heading controller, discover hidden obstacles with a short-range sensor, and replan.
- Project: A Two-Link Arm That Avoids an Obstacle Build a motion planner for a two-link robot arm: inverse kinematics, a C-space collision map, BFS in joint space, and a smooth timed trajectory, all in Python.
- Project: Tracking a Moving Target with a Kalman Filter Build a 2D target tracker: simulate a moving object with noisy, missing and outlier measurements, then track it with a Kalman filter, gating and tuning.
- Robotics Practice Problems with Solutions Test yourself with robotics exercises: odometry, Jacobians, PID tuning, a complementary filter, planning questions and a review quiz, with runnable solutions.