
This lecture introduces the intermediate course goal of building a robot automation system with Python using a three-layer framework of Brain (AI), Nerves (ROS2), and Muscles (Motors). Students will learn to connect sensor data to motor actions through Google Colab across five structured modules.
This lecture introduces ROS2 as the global standard operating system for robots, designed to handle real-time, parallel, and distributed tasks like camera processing and motor control simultaneously. It highlights ROS2's core benefits—modularity, a vast ecosystem, and high reliability—while outlining the course focus on foundational concepts like nodes, topics, and simulator integration.
This lecture explains the core ROS2 concepts of nodes, which are independent program units with a single dedicated role, and topics, which act as named broadcast channels for data. This architecture enables loosely coupled, one-to-many communication where independent publishers and subscribers allow for highly scalable and resilient distributed processing.
This lecture focuses on ROS2 messages, explaining that nodes must agree on strict, purpose-specific data types—such as sensor data or control commands—for information to arrive. It also addresses the real-time communication challenges of latency, buffering, and Quality of Service (QoS), while introducing essential terminal commands for inspecting and debugging communication states.
This lecture explains how Application Programming Interfaces (APIs) act as an abstraction layer to control robot hardware using simple Python code without needing complex circuit knowledge. This abstraction ensures code reusability across different robot types and allows the exact same code to run seamlessly on both simulators and real robots.
This lecture introduces robot simulation environments, focusing on how they reproduce real-world physics to allow safe, cost-free testing and rapid code iteration. It recommends Webots for the course, explains how simulations combine environments, URDF robot models, and Python controllers , and outlines the Sim2Real workflow for transferring code to real hardware.
This lecture covers the fundamentals of coordinate systems (6DoF) and how robots represent position and orientation using spatial axes. It distinguishes between forward and inverse kinematics for controlling robot movement and emphasizes using established ROS2 libraries (like MoveIt2 and tf2) to handle the underlying mathematics.
This lecture introduces the PID control loop, explaining how a feedback system continuously measures error to ensure a robot moves smoothly and stops precisely on target. It breaks down the individual roles of Proportional (P), Integral (I), and Derivative (D) control and outlines the proper sequence for tuning these parameters safely within a simulator.
This lecture focuses on safety design and emergency stops, emphasizing that robots must be engineered with a fail-safe assumption that components will fail. It details a four-layer emergency stop architecture alongside automatic collision detection using LiDAR, bumpers, and motor current monitoring to keep operations within safe bounds.
This lecture concludes Module 1 by summarizing nine foundational robotics terms and the five-step control workflow that spans sensor input, AI decision-making, PID correction, motor output, and safety monitoring. It also previews Module 2, which covers the essential Python, OpenCV, and AI API skills required to transition into hands-on robot programming.
This lecture kicks off Module 2 by explaining why Python is the world-standard language for AI and robotics due to its massive community and rich ecosystem of libraries like NumPy, OpenCV, and rclpy. It highlights that while Python is slower than C++ at runtime, it excels as a high-level commander layer that delegates heavy computations to GPU-accelerated C++ libraries.
This lecture covers Python's four basic data types—int, float, str, and bool—and explains how they represent various forms of robot data. It demonstrates how to group multiple values using ordered lists or named dictionaries based on the sensor data structure, while emphasizing the importance of clear variable naming conventions to simplify debugging.
This lecture focuses on conditionals and loop control, detailing how if-elif-else structures make multi-stage obstacle decisions and how while and for loops manage repetitive tasks like waypoint tracking. It also emphasizes using nested conditionals for complex logic and adding sleep intervals to control cycles to maintain execution frequency and prevent CPU overload.
This lecture teaches the DRY (Don't Repeat Yourself) principle using Python functions to eliminate code duplication, make code reusable, and simplify debugging. It outlines effective function design with arguments and return values , discusses code organization strategies like file-splitting and centralized constants , and highlights built-in standard libraries essential for robotics.
This lecture introduces the NumPy numerical computing library, explaining how its vectorized operations handle robot mathematics like coordinate transformations and sensor processing up to 100 times faster than pure Python loops. This optimized performance provides the necessary computational headroom to sustain 50–100 Hz real-time control loops without risking system delays.
This lecture introduces OpenCV fundamentals, explaining how digital images are structured as 3-D NumPy arrays in a unique BGR color order. It highlights the advantages of using the HSV color space for reliable object detection under varying light , covers essential noise-reduction filters , and demonstrates how to capture and display a live webcam feed in about ten lines of code.
This lecture details how to implement object detection via color extraction, taking a frame through an HSV conversion, a binary color mask, and contour extraction to pinpoint a target's position. It explains how to calculate the object's centroid coordinates, which serve as the essential error-tracking input for a robot's automated tracking control system.
This lecture explains how to connect a robot to cloud-based AI models by calling AI APIs using the Python requests library and JSON payloads. It details how to securely manage API keys and instruct the AI to return structured JSON responses that can be converted directly into physical robot actions.
This lecture details how to construct a reusable Python function to send prompts to a Language Model (LLM) by embedding numeric sensor data via f-strings and defining an explicit system persona. It highlights techniques for enforcing structured JSON outputs that can be directly parsed into robot actions, alongside selecting reactive, chained, or planned reasoning based on task complexity.
This lecture details how to integrate a robot with Vision-Language Models (VLMs) by converting OpenCV frames into Base64 text strings to transmit visual data alongside text questions through an API. It highlights using a try-except fallback to safely parse structured JSON outputs for high-level scene understanding, combining the semantic power of VLMs with the real-time speed of traditional OpenCV processing.
This lecture introduces asynchronous processing and event-driven design, explaining how to use threading to process camera video and control motors simultaneously without blocking execution. It highlights the ROS2 pattern of using callback functions to react dynamically to sensor events and compares the use cases of multi-threaded parallel execution against cooperative multitasking with asyncio.
This lecture covers exception handling and troubleshooting in robotics, emphasizing that unexpected errors should be treated as expected events to prevent dangerous program crashes. It outlines strategies like try-except-finally blocks and exponential back-off retries to ensure the robot can safely recover, clean up resources, or default to a safe stop state.
This lecture introduces the professional template for robot engineering, structured around three core execution phases: Setup, the Main Loop, and Teardown. It highlights how classes organize control behaviors and how a dedicated LoopRate ensures a stable control frequency, providing a five-item checklist to guarantee production-ready code.
This lecture guides students through the Module 2 capstone exercise, a 20-line autonomous auto-stop program where a robot uses LaserScan data to detect obstacles and stop itself. It details the ROS2 node implementation and simulator setup while providing key troubleshooting steps like reading errors from the bottom up and utilizing terminal debugging commands.
This lecture concludes Module 2 by summarizing fifteen core Python skills acquired across control logic, sensor processing, and cloud-based AI integration. It also previews Module 3, where students will combine these tools to build an autonomous, language-directed tracking robot.
This lecture kicks off Module 3 by establishing the goal of building a real-time, image-recognition-driven tracking system where a robot automatically follows a red ball. It outlines the six foundational library imports , a five-step environment setup , and a three-stage development path that spans video capture, object detection, and automated tracking.
This lecture guides students through Exercise 1 to build a real-time camera feed capture skeleton using CvBridge to convert ROS2 Image messages into OpenCV-compatible NumPy arrays. Implemented within the automated on_image callback framework using rclpy.spin(), it provides a foundational per-frame processing loop and verification checklist that serves as the base for all subsequent detection exercises.
This lecture walks through Exercise 2, demonstrating how to isolate a red ball by adding an HSV color filter and cv2.inRange thresholding directly inside the existing video callback function. It also covers the integration of morphological open operations for noise removal to ensure the target object appears cleanly as white against a completely black background.
This lecture details Exercise 3, explaining how to find a target object's screen position using contour detection to select the largest detected area while filtering out small noise blocks. It demonstrates how to compute the ball's precise centroid coordinates, tracking it visually on screen with a green dot to provide the essential positional data required for autonomous robot control.
This lecture details Exercise 4, explaining how to calculate a robot's turning speed by measuring the target's pixel offset from the screen center via Proportional (P) control. It demonstrates how to clamp angular velocities to prevent runaway spins and enforces safety constraints, such as zeroing speeds when the target is lost.
This lecture marks the first autonomous movement of the tracking system by integrating P-control into the main runtime loop so the robot turns and moves forward to follow the ball. It details how to tune proportional gains from a safe baseline and analyzes the primary causes of jerky motion, such as sensor noise and excessive feedback amplification.
This lecture covers Exercise 6, where the completed autonomous tracker program is put to the test by moving the ball freely in the simulator to verify the robot's real-time physical reactions. It explores normal tracking behaviors and provides solutions for three common failure modes: target speed overload, field-of-view loss, and lighting shifts.
This lecture introduces AI-powered semantic object recognition using YOLOv8, moving the robot beyond simple color filtering to understanding what objects are by analyzing shapes, textures, and context. It demonstrates how to load the model, filter high-confidence detections across 80 classes, and extract semantic label names alongside centroid coordinates to prepare for language-directed navigation.
This lecture details Exercise 7, explaining how to guide a robot toward a specific object by matching a string variable target label with YOLO recognition results. It demonstrates how to establish an arrival detection system using bounding box size and center offset to prompt a clean, automated stop when the robot reaches the target.
This lecture covers Exercise 8, demonstrating how to chain multiple targets together using a state machine and a task queue to transition the robot through defined behavioral phases. It explains how to autonomously execute sequential tasks—advancing from searching and tracking to destination arrival—without requiring human intervention between goals.
This lecture serves as a troubleshooting guide for Module 3 exercises, offering explicit solutions to counter jittery HSV detection and communication lag lag-induced robot runaway. It details critical debugging habits for code typos and outlines stabilization techniques—such as raising confidence thresholds and filtering by area—to mitigate AI and YOLO misdetections.
This lecture emphasizes the importance of parameter tuning as a systematic engineering discipline, explaining that moving from a working robot to a reliable one requires a continuous cycle of observation and adjustment. It outlines a scientific tuning process based on changing one variable at a time, keeping structured logs, and measuring key performance indicators (KPIs) to successfully bridge the gap between simulation and real-world conditions.
This lecture explains how to preserve and share robot control programs by organizing code into a structured project folder using a centralized config.py file and a descriptive README.md. It emphasizes the high professional value of recording a short demo video and publishing your work on GitHub and LinkedIn to showcase your physical AI implementation skills to recruiters.
This lecture reviews Module 3 by focusing on a five-question conceptual verification checklist to ensure students can explain the technical choices behind the robot's perception-to-action pipeline. It addresses frequently asked real-world application questions and outlines career paths in robotics systems integration, logistics automation, and automotive R&D.
This lecture wraps up Module 3 by summarizing the fifteen hands-on skills and three core capabilities—sensor processing, control design, and integration—developed throughout the module. It celebrates the successful creation of a complete tracking robot and previews Module 4, which introduces professional engineering practices like requirements definition, state machines, and safety design.
This lecture introduces Module 4 by emphasizing requirements definition as the design foundation that bridges the gap between a robot simply moving and reliably doing its job. It demonstrates how to translate vague human instructions into concrete, robot-understandable specifications while explicitly managing user expectations and project scope.
This lecture explains task decomposition, demonstrating how to translate unconscious human actions into explicit, programmable robot commands. It details how to evaluate routine versus non-routine tasks and uses a multi-lens approach—including a matrix, time cost, and risk assessment—to identify and prioritize optimal automation targets.
This lecture covers proper state machine design from first principles, introducing a five-state foundational pattern composed of mutually exclusive states: IDLE, SEARCHING, MOVING, WORKING, and ERROR. It explains how to map measurable transition triggers directly into Python Enum and conditional logic while emphasizing the necessity of built-in error recovery paths.
This lecture introduces logic design through flowcharts, explaining how a visual blueprint maps detailed behavior within robot states and uncovers critical design gaps. It teaches the standard flowchart symbols, emphasizes drafting the normal execution path before mapping error-handling branches , and outlines how diagrams serve as cross-functional team communication tools.
This lecture focuses on recovery design, teaching students to build robot control systems under the fundamental assumption that failure is a certainty. It outlines structured, multi-level response plans for scenarios like dropped objects and blocked paths, while establishing clear decision rules on when a robot should auto-recover versus when it must escalate to a human notification.
This lecture establishes the fundamental philosophy of fail-safe design, emphasizing that systems must always default to the safest possible state—such as a complete stop—during a malfunction. It introduces a three-layer safety guarantee and a four-zone human avoidance speed model , aligning these practices with international compliance standards like ISO 10218 and ISO/TS 15066.
This lecture focuses on improving robot efficiency and battery management, detailing methods like trapezoidal speed profiles, Bézier curves, and path planning to minimize wasted movements. It also outlines strategies for computing optimization and establishing pre-design Key Performance Indicators (KPIs) to ensure the system reduces CPU load and reliably justifies its deployment cost.
This case study applies Module 4 design techniques to a catering robot, detailing its concrete requirements definition and a 7-state machine with measurable triggers. It anticipates real-world environmental noise like moving obstacles and multi-robot congestion, offering counter strategies and advanced efficiency optimizations like dynamic routing and predictive delivery.
This lecture guides students through the Module 4 capstone, explaining how to refine an autonomous robot design proposal across manufacturing, service, or daily life support categories. It emphasizes selecting a distinct signature feature, applying Minimum Viable Product (MVP) thinking, and integrating structured error design with numerical KPIs to ensure a successful, time-boxed presentation.
This lecture concludes Module 4 by summarizing ten core robot design skills and introducing the Module 5 capstone mini-project, which requires students to build a functional system within a 100-minute constraint. It outlines the project rules and a three-axis evaluation system spanning working performance, design depth, and originality, reinforcing the rule that finishing a minimum viable product beats seeking perfection.
This lecture kicks off the Module 5 mini-project, introducing three difficulty-graded theme options—Autonomous Patrol, Object Delivery, and Intrusion Detection—that all build directly upon the previous module's tracking program. It details a five-point kickoff checklist to complete before coding to ensure students establish clear requirements, sketch out state machines, and manage their time allocation effectively.
This lecture outlines development planning and time management for the 100-minute mini-project, emphasizing the engineering discipline of defining a Minimum Viable Product (MVP) before writing any code. It breaks down specific MVPs for each project theme and details a five-phase time-boxed development flow combined with a final environmental checklist to prevent running out of time.
This lecture outlines the initial programming phase of the mini-project, focusing on building a shared ROS2 node and state machine skeleton before integrating theme-specific perception modules like YOLO, HSV filters, or LiDAR. It emphasizes verifying code reliability by separating state transitions from motion calculations and conducting essential calibration tests for forward movement, turning, and emergency stops.
This lecture details the second programming phase of the mini-project, focusing on building a full state machine with concrete, measurable transition conditions and a comprehensive error-handling system. It also guides students through implementing their chosen signature feature—such as trapezoidal acceleration, four-zone safety, or LLM integration—while emphasizing the fallback strategy of stripping out extensions if time runs short.
This lecture covers the third programming phase of the mini-project, focusing on executing a full-run test sequence and immediately recording a baseline video as proof of completion. It details symptom-based debugging commands and methodical parameter tuning for gains and distance thresholds to achieve stable, error-free robot motion.
This lecture explains how to write a professional six-section project README template to comprehensively document the completed robot project. It emphasizes outlining technical challenges using concrete numbers and failure recovery stories to provide undeniable proof of genuine engineering experience.
This lecture explains how to capture the robot's best performance using Webots or OS built-in recording methods to produce a 30-to-60-second demo video. It outlines the five-step submission process for the four essential deliverables, which serves as the requirement for earning a LinkedIn-ready digital certificate.
This lecture introduces the mini-project Virtual Showcase, outlining a structured two-minute presentation format—covering what was built, why, how, and a video demo—to share student work. It highlights sample projects across various themes, encourages constructive peer comments on alternative design approaches, and details specific course awards alongside final instructor closing reflections.
This lecture provides a comprehensive wrap-up of the intermediate course, mapping the 60 sections of acquired skills that connect OpenCV "eyes," control "brains," and ROS2 "muscles" into a functional Physical AI system. It previews the advanced course curriculum, highlighting upcoming topics like SLAM, reinforcement learning, and multi-robot coordination as students transition from using AI to teaching AI.
This final lecture celebrates the completion of all 60 sections of the Intermediate Course, solidifying the student's status as an engineer capable of controlling robots using Python. It outlines pathways for applying these skills across professional industries and personal projects while providing details on the final survey, course certificate, and next steps into the Advanced Course.
"This course contains the use of artificial intelligence."
[Course Overview]
Welcome to this comprehensive guide designed to elevate your skills and productivity. This course is built to provide you with practical, actionable knowledge that you can apply immediately to your professional and personal projects. Through structured lessons, real-world examples, and step-by-step walkthroughs, you will gain a deep understanding of the core concepts and master the essential tools required for success in this field. Whether you are a beginner looking to get started or an experienced professional seeking to refine your workflow, this course offers valuable insights tailored to your needs.
[Use of AI Tools & Quality Assurance]
To ensure the highest quality of learning and a well-structured educational delivery, the presentation materials and narration scripts for this course were meticulously developed, organized, and refined with the assistance of Claude, an advanced AI assistant.
Please rest assured that this collaborative approach was utilized strictly to maintain an exceptionally high standard of clarity, accurate formatting, and professionalism throughout all lectures. Every piece of content generated by the AI has been thoroughly reviewed, fact-checked, and edited by the instructor to ensure accurate, engaging, and seamless learning experiences. We leverage these innovative tools to deliver the best possible educational value to our students efficiently.