A complete state-machine model for the reactive control layer of a differential-drive mobile robot and a discrete control strategy that approximates continuous behavior and incorporates a simplified proportional–integral–derivative (PID) controller for pose correction are presented.
Abstract
Existing robotic control frameworks often rely on complex hierarchical state machines or middleware infrastructures, which may be unsuitable for resource-constrained embedded systems and difficult to map directly to low-level code. This work presents a complete state-machine model for the reactive control layer of a differential-drive mobile robot. Although mobile-robot controllers often exhibit considerable complexity—particularly at lower levels, where numerous hardware-dependent operations occur—this work shows that a network of concurrent state machines provides a clear and lightweight method for specifying and implementing control behavior. The proposed approach decomposes the reactive controller into two concurrent extended finite-state machines (CEFSMs) responsible for locomotion and lidar operation, connected through simple and predictable protocols. This structure enables a direct mapping from model diagrams to procedural code in languages such as C++ and Lua. The method has been used extensively in an undergraduate Embedded Systems course since 2011, supporting both physical robots (Arduino-based) and their digital twins in CoppeliaSim. We also introduce a discrete control strategy that approximates continuous behavior and incorporates a simplified proportional–integral–derivative (PID) controller for pose correction. The approach reduces development effort, increases model clarity, and yields reusable code across hardware and simulation platforms. Quantitative evaluation shows that the proposed PID-based control strategy can improve positioning accuracy by up to an order of magnitude compared to a baseline on–off controller, without increasing the computational cost. In addition, the control cycle time has been significantly reduced (from 31 ms to 12 ms) in order to ensure a stable execution period; this, in turn, results in a more predictable controller output and improved trajectory consistency.
State machines serve as the core modeling paradigm in embedded and robotic control systems. The architectural selection between blocking and non-blocking implementations under multithreaded control environments critically determines system responsiveness and development complexity, yet existing studies predominantly re...
Meng-Qi Deng, Xiang-Sen Han, Wen-Xi Tan et al.· 2026 International Conferenc...· 0 citations
Mobile robots often face challenges operating in partially known environments where success depends on factors such as robot capabilities, task characteristics, and the environment. This letter presents a generalized, modular framework that enables robots to explicitly account for these factors through the concept of a...
Patrick Sherman, N. Bezzo· IEEE Robotics and Automation...· 0 citations
Efficient and distributed coordination of mobile robots is one of the main challenges in multi-robot systems. Topological constraints, often expressed as topological braids, are a popular tool to encode complex coordination patterns between multiple mobile robots, as they offer a compact and abstract representation of...
Gianpietro Battocletti, Dimitris Boskos, D. Dimarogonas et al.· 0 citations
Physical control tasks in the natural world, such as driving or object manipulation, frequently exhibit dramatic variations in sensory and compute complexity over time. Correspondingly, a natural resource-efficient choice for robot control is to dynamically switch between control modes with varying resource allocations...
Arjun Krishna, Vincent Pacelli, Dinesh Jayaraman· 0 citations
Draft is presented, a parametric generation tool whose generalized engine compiles any parametric tree of serial chains into a simulation-ready MJCF model, without CAD, that allows engineers to explore design tradeoffs through easily adjustable models and evaluate how changes influence controller performance.
David Nguyen, Marcelo Coelho, Sangbae Kim· 0 citations
Based on the advantages of redundancy, high stiffness, and strong load-bearing capacity of parallel mechanisms, they can be applied in the field of mobile robots. This paper proposes a novel three-platform parallel-coupled mobile robot and conducts motion analysis and dynamic modeling for it. It proposes an active inte...