Robotics knowledge
Blog
Technical articles on embedded programming, ROS 2, SLAM, Nav2 and AMR/AGV — written from building real robots.
32 articles · AMR / AGV
Differential drive in AMRs: from /cmd_vel to PWM for each wheel
The kinematics robot lesson solved the formula v, ω. This article is from a firmware perspective: how that formula turns into code that runs on the MCU, and the actual mechanical/circuit decisions when installing an AMR differential drive.
Mecanum drive in AMRs: synchronizing 4 wheels and common mechanical faults
The kinematics lesson Mecanum solved the 4-wheel inverse matrix. This article is from a practical assembly perspective: why Mecanum requires more precise driver synchronization than Differential Drive, and common mechanical errors when assembling yourself.
Motor control for AMRs: a closed PID speed loop for each wheel
Mixing calculates the desired speed for each wheel, but does not automatically make the wheel rotate at that speed. The closed PID loop with feedback from the encoder is the missing link — this lesson assembles the Motor, Driver, Encoder, and PID learned individually into a complete control loop.
AMR odometry: a practical pipeline from encoder pulses to /odom
The Encoder lesson learned how to read pulses, and the Odometry lesson in Localization learned the dead reckoning formula. This article assembles both into a complete firmware pipeline — 3 different frequencies running in parallel on the same MCU.
The hardware layer in AMRs: an inventory of physical I/O
The Hardware AMR section has studied each individual component. This article groups them together according to their roles in software architecture: What is the Hardware Layer, where is the boundary with the Driver Layer, and how many I/O pins does the MCU need to read/write all those components.
The ROS2 layer in AMRs: the topic graph of a complete robot
The section ROS2 & software explained what node/topic/service is. This article doesn't repeat that concept — it maps the actual topics of a complete AMR: which nodes publish what, which nodes subscribe to what, and why each type of data needs a different level of QoS.
The localization layer in AMRs: how local EKF and AMCL work together
The ROS2 Navigation section has detailed detailed explanations of AMCL and EKF individually. This article does not repeat the mathematics of each algorithm — it answers the architectural question: how the two algorithms work together in the Localization Layer of an actual AMR.
The navigation layer in AMRs: how global and local planners work together
The ROS2 Navigation section has explained path planning and path following in detail individually. This article is from an architectural perspective: why Nav2 split into 2 planners running at different frequencies, and how costmap connects them.
The application layer in AMRs: a state machine for task dispatch
The previous 4 floors take care of hardware, communication, localization, navigation. The Application Layer answers the final question: where did the 'go to this point' command come from in the first place, and how does the robot know which task it is working on, whether it is finished, or whether it has failed.
IMUs in AMRs: detecting wheel slip that odometry misses
The Sensor & Perception column explained what the IMU measures. This article focuses on AMR's question: where to mount the IMU on the robot frame, and why combining the IMU with an encoder detects wheel slippage that odometry alone completely misses.
What is an AMR? A robot that localizes itself without guidance infrastructure
AMR is a self-localizing transport robot using sensors and SLAM, without the need for fixed guidance lines/wires/tags - completely different from the old generation of AGVs. This article explains exactly what AMR consists of and how it works.
What is an AGV? An autonomous vehicle that follows fixed guidance infrastructure
AGV is a generation of self-propelled vehicles born in the 1950s, following fixed lines/wires/tags installed on the floor - not self-localizing, not self-avoiding obstacles, but cheap, simple and proven over decades.