A robot that works in the demonstration is the start of the problem. On the warehouse floor it meets slopes, dust, wild sensor readings, drifting wheels, loads that change, people who walk where they should not, and a manager who counts the parcels. The faults are rarely clever: a motor bought because it looked about right, a robot that stops for an obstacle that is one bad reading, a position that drifts half a metre, a loop that overshoots because the integral kept adding, a cycle time that was calculated from the top speed, an arm that was told to go where it cannot fold, a goal that is closed off by pallets, a slow zone that was smaller than the stopping distance, and a morning check that is a clipboard that people tick by habit.
Robotics in Practice is the practice course for the robotics course. It does not teach what a PID loop or an encoder is: the first course does. It takes each idea and turns it into a calculation that you write as a small, testable function, on invented warehouse robots, in Python, with data generated for you alone. Rules written like this can be tested on a laptop in seconds, before the robot ever moves, which is the safest place to find a mistake.
What you need first
You should have finished, or be comfortable with, Robotics, Actuators and Advanced Projects (sense-plan-act, safety and emergency stops, DC motors, encoders, PID control, kinematics, trajectories and testing). The case files use Python (it runs in your browser, nothing to install): you should be comfortable with variables, lists, dictionaries, loops and functions. If you are not yet, read the Python primer for the case files first (it takes about an hour), or take the free course Python for Case Files, which teaches the same ideas with nine small hands-on jobs.
Every lab starts with a how to do this lab panel: the steps, what each answer must look like (its shape, never its value), and the first lines of your own files. A wrong answer comes with a hint, and when every answer is right you can see one good way to write it. These labs teach the arithmetic and the edge cases; they are not a robot simulator, and nothing here is a safety function: real protection of people needs certified safety equipment and an assessment against the standards. Each lesson ends with a box of what to do on the bench: the measurement or tool that shows the same thing on a real robot.
What you will learn
- Size a drive: force on a slope, torque per wheel, speed, and the cheapest motor that works.
- Clean a sensor: median and exponential filters, and the spikes that stop a robot for nothing.
- Know where you are: differential-drive odometry, heading, drift and calibration.
- Tame a loop: PID step response, overshoot, settling, steady error and windup.
- Time a move: trapezoids and triangles, the ramp distance and the cycle time.
- Reach with an arm: two-link kinematics, reach limits and two solutions.
- Find a way: breadth-first search on a grid, and a goal that is closed off.
- Stop in time: reaction and braking distance, zones and the gap.
- Check before the shift: six rules at exact limits and a clean go.
How it works
Each case is a call from someone at Sabi Logistics (Tunde, Bisi, Halima and Ngozi, the safety officer), a short brief, a lab with a starter script, a twist and a debrief that says what a senior robotics technician would do next. Write the Python, run it, press Check my answers, and fix what the checker tells you. When every check passes you get a case reference to submit, and a short write-up to practise explaining your work to the person who asked for it.
The capstone asks you to write a tested calculation set for a small robot of your own, and to say honestly what the calculations cover and what only a test on a real robot can show.