Hostname: page-component-74656f9884-rngvg Total loading time: 0 Render date: 2026-11-06T09:31:28.301Z Has data issue: false hasContentIssue false

An improved fuzzy inference strategy using reinforcement learning for trajectory-tracking of a mobile robot under a varying slip ratio

Published online by Cambridge University Press:  25 January 2024

Muhammad Qomaruz Zaman
Affiliation:
Graduate Institute of Manufacturing Technology, National Taipei University of Technology, Taipei, Taiwan
Hsiu-Ming Wu*
Affiliation:
Department of Intelligent Automation Engineering, National Taipei University of Technology, Taipei, Taiwan
*
Corresponding author: Hsiu-Ming Wu; Email: hmwu@mail.ntut.edu.tw
Rights & Permissions [Opens in a new window]

Abstract

In this study, a fuzzy reinforcement learning control (FRLC) is proposed to achieve trajectory tracking of a differential drive mobile robot (DDMR). The proposed FRLC approach designs fuzzy membership functions to fuzzify the relative position and heading between the current position and a prescribed trajectory. Instead of fuzzy inference rules, the relationship between the fuzzy inputs and actuator voltage outputs is built using a reinforcement learning (RL) agent. Herein, the deep deterministic policy gradient (DDPG) methodology consisted of actor and critic neural networks is employed in the RL agent. Simulations are conducted with considering varying slip ratio disturbances, different initial positions, and two different trajectories in the testing environment. In the meantime, a comparison with the classical DDPG model is presented. The results show that the proposed FRLC is capable of successfully tracking different trajectories under varying slip ratio disturbances as well as having performance superiority to the classical DDPG model. Moreover, experimental results validate that the proposed FRLC is also applicable to real mobile robots.

Information

Type
Research Article
Copyright
© The Author(s), 2024. Published by Cambridge University Press
Figure 0

Figure 1. Geometric relationships of the DDMR: notations $\{R\}$ and $\{I\}$ are the moving and fixed frames, respectively. The positional discrepancy of the DDMR concerning the trajectory is quantified by the distance error $e_d$ and heading error $e_h$. The DDMR’s X-axis denotes the forward direction of its motion.

Figure 1

Figure 2. Overall control diagram: the blocks outside the RL agent represent the RL environment, providing both rewards and states to the agent. The RL agent produces right and left motor voltages $(V_u, V_v)$ as actions to induce a transition of the DDMR to a new state. Subsequently, the state is compared to the prescribed trajectory, forming the feedback loop. The RL agent also functions as a fuzzy inference engine, specifically optimized to mitigate tracking errors.

Figure 2

Figure 3. The designed fuzzy membership functions $(\mu _d, \mu _\theta )$ for $e_d$ and $e_\theta$: the membership functions for $e_d$ encompass linguistic terms such as Zero (Z), Medium (M), and Far (F). For $e_\theta$, the linguistic terms include Negative Big (NB), Negative (N), Zero (Z), Positive (P), and Positive Big (PB).

Figure 3

Figure 4. Diagram of the actor-critic neural networks: the actor-network, denoted as $\mu _D(s\mid \theta ^\mu )$, is in charge of approximating the deterministic policy function and subsequently generating actions based on the provided state. Simultaneously, the critic-network, represented as $Q(s,a\mid \theta ^Q)$, approximates the action-value function. This network architecture takes the current and preceding firing degree outputs of the fuzzy membership function, expressed as $[f_{d(t-1)}, f_{h(t-1)}, f_{d(t)}, f_{h(t)}] \in \mathbb{R}^{16 \times 1}$.

Figure 4

Table I. The used system parameters of the DDMR during simulations.

Figure 5

Figure 5. Comparison of average cumulative training phase rewards over 20 episodes: this representation illustrates that the proposed FRLC exhibits accelerated learning. Throughout the training phase, the proposed FRLC accumulates $8.5 \times 10^6$ reward points surpassing the classical DDPG model’s accumulation of $6.9 \times 10^6$ reward points.

Figure 6

Figure 6. Comparative responses of point-to-point tracking: this response illustrates the tracking performance of both the proposed FRLC and the classical DDPG model during the training phase. While the DDMR exhibits superior heading control, the proposed FRLC showcases an exceptional ability to accurately halt at the goal point, consequently maximizing reward accumulation.

Figure 7

Figure 7. Comparative tracking error ($e_d, e_\theta$) responses: this figure presents a comparative analysis of tracking error ($e_d, e_\theta$) responses between the proposed FRLC and the classical DDPG model. While the spatial plot in Fig. 6 depicts a more direct path from classical DDPG, it is observed that the convergence speed in $e_\theta$ for classical DDPG is only slightly better than that of FRLC. The response in $e_d$ further indicates that FRLC approaches the goal at a higher speed. The wider curve in the FRLC response in Fig. 6 can be attributed to the combined effects of turning with a faster approaching speed.

Figure 8

Figure 8. Comparative actuator voltage ($V_u, V_v$) responses in the proposed FRLC and classical DDPG: in classical DDPG, a distinctive method of maintaining a straight path is observed and achieved through alternating voltages (as seen during $0\lt t\lt 3$ s). However, the FRLC exhibits a superior strategy characterized by a quicker tracking error response as demonstrated in Fig. 6. Additionally, after $t\gt 3$ s, the FRLC employs a unique strategy by completely regulating the voltage inputs to zero, exemplifying a halting approach as indicated in Fig. 6.

Figure 9

Figure 9. Response comparisons of motor torques ($\tau _u, \tau _v$) between the proposed FRLC and classical DDPG: observations from both methodologies reveal an initial predominance of right motor torque, indicative of left-turning acceleration in the DDMR. At $t \gt 2$ s, both motor torques in the FRLC approach to zero. Conversely, a slightly higher value in the right motor torque persists at $t \gt 3$ s in the classical DDPG, sustaining the right-turning motion of the DDMR.

Figure 10

Figure 10. Varying slip ratios ($S_{ru}, S_{rv}$) for both left and right wheels: the proposed FRLC, which has undergone training to track a goal point rather than a trajectory, is subjected to the additional challenge of varying slip ratios in the wheel dynamics to assess its robustness. These scenarios present novel conditions for the RL agent unencountered during its training phase.

Figure 11

Figure 11. Simulation results for tracking a circular trajectory: the DDMR is tasked to follow this trajectory from varying initial conditions. Notably, the DDMR’s path closely mirrors the intended trajectory, signifying a noteworthy degree of accuracy.

Figure 12

Figure 12. Tracking error responses $(e_d, e_\theta )$ of the circular trajectory in the simulation: the accuracy of the proposed FRLC extends to the temporal domain, with steady-state errors confined to $e_d \lt 0.05$ m while $t\gt 7.6$ s and $e_\theta \lt 12^\circ$ after $t\gt 11$ s.

Figure 13

Figure 13. Voltage responses $(V_u, V_v)$ during the tracking of the desired circular trajectory in the simulation: the trained FRLC approach effectively maintains an excellent tracking accuracy by adapting the voltage to overcome variations in slip ratio, particularly at $t=30$ and $t=55$ s.

Figure 14

Figure 14. Torque responses ($\tau _u, \tau _v$) during the tracking simulation of the circular trajectory: the torque is representative of the difference in motor voltages. As the voltages settle and their magnitude approaches to a steady state, the torque response also approaches to zero.

Figure 15

Figure 15. Simulation results for Lemniscate of Gerono trajectory tracking: the Lemniscate of Gerono exhibits greater variability in curve sharpness and turning direction compared to the circular trajectory. Nonetheless, the DDMR showcases a high level of proficiency in navigating this trajectory starting from two initial cases.

Figure 16

Figure 16. Experimental configuration: the employed experimental platform is the ADLINK NeuronBot, characterized by its cubic form and black aesthetic. Illustrated here is the circular trajectory, featuring a radius of $0.8$ m.

Figure 17

Figure 17. Experimental results for circular trajectory tracking: the experiment replicates the initial conditions from the simulation. The traced path of the DDMR is visualized on a pre-established occupancy grid map of the room. These findings affirm the DDMR’s ability to track the prescribed circular trajectory based on the proposed FRLC.

Figure 18

Figure 18. Experimental results for Lemniscate of Gerono trajectory tracking: the successful navigation of both circular and Lemniscate of Gerono trajectories by the DDMR across diverse initial conditions is indicative to the effectiveness of the learned trajectory tracking policy facilitated by the proposed FRLC.