Obstacle avoidance is a fundamental capability for autonomous mobile robots, ensuring safe navigation in dynamic and unstructured environments. This paper presents a novel approach to real-time obstacle avoidance based on an Artificial Potential Field Method (APFM) utilizing a hyperbolic secant function. A mathematical formulation of the proposed model is developed and analyzed. To validate the approach, a simulation framework was implemented using ROS 2, the Gazebo simulator, and the TurtleBot3 Burger platform. Extensive simulations were conducted, generating LiDAR sample plots alongside corresponding repulsive, attractive, and total potential field distributions, demonstrating the correctness and effectiveness of the proposed method. Additionally, RViz visualization confirmed the smoothness of the robot’s path and continuous heading adjustments over 28 navigation steps. To assess computational efficiency, execution timesfor evaluating Gaussian and hyperbolic secant functions were measured using C++ implementations with varying compiler optimization flags. The results indicate that the computational cost of the hyperbolic secant function is approximately 2–3 % lower than that of the Gaussian, a negligible difference in practice. The findings support the suitability of the hyperbolic secant-based APFM for real-time obstacle avoidance in robotic applications. The hyperbolic secant function offers a sharper decay near the origin compared to the Gaussian distribution, resulting in stronger immediate repulsive forces when the robot is close to an obstacle and rapidly diminishing influence at greater distances. This property provides improved responsiveness and local obstacle avoidance without introducing excessive long-range effects that could unnecessarily distort the global path. Additionally, the hyperbolic secant’s symmetric, heavy-tailed nature maintains smoothness in the potential field, ensuring stable and predictable robot motion while enabling faster, more efficient trajectory adjustments in dynamic environments.
[1] Berizka I. (2024). Path planning and obstacle avoidance methods for autonomous mobile robots, ISSN 2224-087X. Electronics and information technologies, Issue 28, 123–142, https://doi.org/10.30970/eli.28.11 .
[2] Katona, K.; Neamah, H. A.; Korondi, P. (2024). Obstacle Avoidance and Path Planning Methods for Autonomous Navigation of Mobile Robot. Sensors, 24, 3573. https://doi.org/10.3390/s24113573
[3] Debnath, D., Vanegas, F., Sandino, J., Hawary, A. F., & Gonzalez, F. (2024). A Re-view of UAV Path-Planning Algorithms and Obstacle Avoidance Methods for Re-mote Sensing Applications. Remote Sensing, 16(21), 4019. https://doi.org/10.3390/rs16214019
[4] Hongbo Liu, Shuai Zhang, Xiaodong Yang, Overview of Path Planning Algorithms, Recent Patents on Engineering; vol. 18, issue 7. e280823220445. https://doi.org/10.2174/ 1872212118666230828150857.
[5] Khatib O. (1986). Real-Time Obstacle Avoidance for Manipulators and Mobile Robots. The International Journal of Robotics Research. 5(1):90–98. https://doi.org/10.1177/ 027836498600500106.
[6] Xiaojing Fan, Yinjing Guo, Hui Liu, Bowen Wei, Wenhong Lyu (2020 Apr). Improved Artificial Potential Field Method Applied for AUV Path Planning. Mathematical Problems in Engineering. Mathematical Problems in Engineering. [Online]. Available: https://doi.org/10.1155/2020/6523158
[7] Jang-Ho Cho, Dong-Sung Pae, Myo-Taeg Lim, Tae-Koo Kang (2018 Aug). A Real-Time Obstacle Avoidance Method for 168 Ukrainian Journal of Information Technology, 2025, vol. 7, No. 1 Autonomous Vehicles Using an Obstacle-Dependent Gaussian Potential Field. Journal of Advanced Transportation [Online]. Available: https://doi.org/10.1155/2018/5041401J .
[8] Berizka, I. and Karbovnyk, I. (2024). Mathematical model of modified real-time obstacle avoidance method based on laplace artificial potential field. Applied Problems of Computer Science, Security and Mathematics, 3 (Sep. 2024), 12–22, https://apcssm.vnu.edu. ua/ index.php/ Journalone/ article/ view/123 .
[9] Pardo-Castellote G. (2003). OMG Data-Distribution Service: architectural overview. In International Conference on Distributed Computing Systems Workshops, 200–206.
[10] William Woodall. ROS on DDS. https://design. ros2.org/articles/ros_on_dds.html , accessed April 27, 2025
[11] Yoo, T.; Choi, B. W. (2024). Interactive Path Editing and Simulation System for Motion Planning and Control of a Collaborative Robot. Electronics, 13, 2857. https://doi.org/ 10.3390/electronics13142857