TRAJECTORY GENERATION AND PID-BASED CONTROL OF A FOUR MECANUM-WHEELED MOBILE ROBOT IN A ROS–GAZEBO SIMULATION FRAMEWORK

DIGITAL OBJECT IDENTIFIER (DOI): https://doi.org/10.5281/zenodo.17211760
F. Ceran1 , K. Cetin2
ReceivedSep 07, 2025
RevisedSep 22, 2025
PublishedSep 27, 2025

Abstract

This study presents the modeling, trajectory generation, and control of a four mecanum-wheeled mobile robot using the Robot Operating System (ROS) integrated with the Gazebo simulation environment. Leveraging both kinematic and dynamic models, cubic polynomial trajectory generation was applied to plan robot motion, while a Proportional–Integral–Derivative (PID) controller was employed to ensure accurate tracking. The robot’s kinematic parameters were defined through Unified Robot Description Format (URDF) modeling, and velocity commands were transmitted to each wheel while feedback was obtained from odometry data. Simulation experiments were conducted for linear and diagonal trajectories, and the influence of PID parameters on position and velocity errors was analyzed. Results demonstrate that carefully tuned PID gains significantly reduce tracking error, ensuring smooth and stable motion along the desired path. The proposed framework highlights the potential of combining ROS and Gazebo as a cost-effective and flexible platform for developing, testing, and refining control strategies prior to real-world implementation.

Keywords

mecanum wheeled mobile robot, Trajectory generation, Proportional-Integral-Derivative (PID) control, Robot operating system (ROS), Gazebo.

References

1. Adascalitei, F., & Doroftei, I. (2011). Practical Applications for Mobile Robots based on Mecanum Wheels-a Systematic Survey. Proceedings of International Conference On Innovations, Recent Trends And Challenges In Mechatronics, Mechanical Engineering And New High-Tech Products Development, vol. 3. 2. Alakshendra, V., & Chiddarwar, S. S. (2017). Adaptive robust control of Mecanum-wheeled mobile robot with uncertainties. Nonlinear Dynamics, 87(4), 2147–2169. https://doi.org/10.1007/S11071-016-3179-1/METRICS. 3. Basavanna, M., & Shivakumar, M. (2020). Mapping of an Unknown Indoor Environment Using 2D-Lidar and ROS for Mobile Robot Navigation. International Journal of Advanced Science and Technology , 14338 – 14345. 4. Chen, X., Cheng, L., & Li, T. (2022). Adaptive Motion Tracking Control for Omnidirectional Mobile Robots Based on Characteristic Model. Chinese Control Conference, July, 2876–2881. https://doi.org/10.23919/CCC55666.2022.9902188. 5. Doroftei, I., Grosu, V., & Spinu, V. (2007). Omnidirectional Mobile Robot - Design and Implementation. Bioinspiration and Robotics Walking and Climbing Robots, InTech Open. https://doi.org/10.5772/5518. 6. Du, Z., Sun, Y., Su, Y., & Dong, W. (2014). A ROS/Gazebo based method in developing virtual training scene for upper limb rehabilitation. Proceedings of 2014 IEEE International Conference on Progress in Informatics and Computing, 307–311. https://doi.org/10.1109/PIC.2014.6972347. 7. Hasana, S., & Alwan, H. (2021). Modeling and Control of Wheeled Mobile Robot With Four Mecanum Wheels. Engineering and Technology Journal, 39(5A), 779–789. https://doi.org/10.30684/ETJ.V39I5A.1926. 8. Keek, J. S., Loh, S. L., & Chong, S. H. (2019). Comprehensive Development and Control of a Path-Trackable Mecanum-Wheeled Robot. IEEE Access, 7, 18368–18381. https://doi.org/10.1109/ACCESS.2019.2897013. 9. Kim, J. (2020). Trajectory generation of a two-wheeled mobile robot in an uncertain environment. IEEE Transactions on Industrial Electronics, 67(7), 5586–5594. https://doi.org/10.1109/TIE.2019.2931506 10. K.-L. Han, H. Kim and J. S. Lee. (2010). The Sources of Position Errors of Omni-Directional Mobile Robot with Mecanum Wheel. IEEE International Conference on Systems, Man and Cybernetics. pp. 581-586. 11. Koenig, N., & Howard, A. (2004). Design and use paradigms for Gazebo, an open-source multi-robot simulator. IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). Vol. 3, 2149–2154. https://doi.org/10.1109/IROS.2004.1389727. 12. Lin, L.-C., Shih, H.-Y., Lin, L.-C., & Shih, H.-Y. (2013). Modeling and Adaptive Control of an Omni-Mecanum-Wheeled Robot. Intelligent Control and Automation, 4(2), 166–179. https://doi.org/10.4236/ICA.2013.42021. 13. Lynch, K. M., & Park, F. C. (2017). Modern Robotics Mechanics, Planning, And Control. Cambridge University Press. 14. Mohand, S., & Mellah, R. (2022). Real-Time Speed Control of a Mobile Robot Using PID Controller. Lecture Notes in Networks and Systems, 413 LNNS, 548–556. https://doi.org/10.1007/978-3-030-96311-8_51. 15. Xie, L., Stol, K., & Xu, W. (2020). Energy-Optimal Motion Trajectory of an Omni-Directional Mecanum-Wheeled Robot via Polynomial Functions. Robotica. 38(8), 1400–1414. https://doi.org/10.1017/S026357471900153X. 16. Yan, Y., & Li, Y. (2016). Mobile robot autonomous path planning based on fuzzy logic and filter smoothing in dynamic environment. Proceedings of the World Congress on Intelligent Control and Automation (WCICA). September, 1479–1484. https://doi.org/10.1109/WCICA.2016.7578767.

How to Cite

F. Ceran, K. Cetin (2025). TRAJECTORY GENERATION AND PID-BASED CONTROL OF A FOUR MECANUM-WHEELED MOBILE ROBOT IN A ROS–GAZEBO SIMULATION FRAMEWORK. Science and Innovation, 4(9), 111-123. https://doi.org/10.5281/zenodo.17211760