| Literature DB >> 35586262 |
Lienhung Chen1, Zhongliang Jiang1, Long Cheng2, Alois C Knoll1, Mingchuan Zhou1,3.
Abstract
With the advance in algorithms, deep reinforcement learning (DRL) offers solutions to trajectory planning under uncertain environments. Different from traditional trajectory planning which requires lots of effort to tackle complicated high-dimensional problems, the recently proposed DRL enables the robot manipulator to autonomously learn and discover optimal trajectory planning by interacting with the environment. In this article, we present state-of-the-art DRL-based collision-avoidance trajectory planning for uncertain environments such as a safe human coexistent environment. Since the robot manipulator operates in high dimensional continuous state-action spaces, model-free, policy gradient-based soft actor-critic (SAC), and deep deterministic policy gradient (DDPG) framework are adapted to our scenario for comparison. In order to assess our proposal, we simulate a 7-DOF Panda (Franka Emika) robot manipulator in the PyBullet physics engine and then evaluate its trajectory planning with reward, loss, safe rate, and accuracy. Finally, our final report shows the effectiveness of state-of-the-art DRL algorithms for trajectory planning under uncertain environments with zero collision after 5,000 episodes of training.Entities:
Keywords: collision avoidance; neural networks; reinforcement learning; robotics; trajectory planning; uncertain environment
Year: 2022 PMID: 35586262 PMCID: PMC9108367 DOI: 10.3389/fnbot.2022.883562
Source DB: PubMed Journal: Front Neurorobot ISSN: 1662-5218 Impact factor: 3.493
Figure 1The comparison of two different observation spaces set up in the first environment. Both are using soft actor-critic (SAC) and with the same hyperparameters setting. The orange line is the result using relative position and velocity in observation space, whereas the blue line is using position and velocity. (A) The safe rate (defined in Section 4.2) of different observation spaces. (B) The accuracy (defined in Section 4.2) of different observation spaces. Each episode corresponds to 100 time steps.
Figure 2The comparison between different power (n) of the exponential decay function. (A) The safe rate (defined in Section 4.2) of three different power (n) of the exponential decay function. (B) The accuracy (defined in Section 4.2) of three different power (n) of the exponential decay using an exponential moving average for better visualization. The two figures show that n = 35 has better learning efficiency, safe rate, and accuracy.
Figure 3The comparison between different weights of reward R. (A) The safe rate (defined in Section 4.2) of three different weights of reward R. (B) The accuracy (defined in Section 4.2) of three different weights of reward R using an exponential moving average for better visualization. The two figures show that c2 = 15 has better learning efficiency, safe rate, and accuracy.
Figure 4Reward function on the planar section of the workspace. (A) The 3D plot of the reward function. (B) Contour plot of reward function.
Figure 5The behavior of the manipulator with respect to the distance(m) in one of the episodes (100-time steps). (A) Distance between robot and obstacles as well as the target (first scenario). (B) Distance between robot and obstacles as well as the target (second scenario).
DDPG-based trajectory planning.
| Randomly initialize Q network |
| Initialize target Q network |
| Initialize replay buffer |
| |
| Initialize a random noise |
| Receive initial observation state |
| |
| Select action |
| current policy and exploration noise |
| Execute action |
| observe new state |
| Store transition ( |
| Sample a random minibatch of |
| ( |
| Set |
| Update critic by minimizing the loss: |
| |
| Update the actor policy using the sampled policy |
| gradient: |
| |
| Update the target networks: |
| |
| |
| |
| |
SAC-based trajectory planning.
| Randomly initialize Q network |
| Initialize target Q networks |
| Initialize replay buffer |
| |
| Receive initial observation state |
| |
| Select action |
| Execute action |
| observe new state |
| Store transition ( |
| Sample a random minibatch of |
| ( |
| Update V by minimizing the mean squared error: |
| |
| |
| Update Q by minimizing the soft Bellman residual: |
| |
| |
| |
| Update π by minimizing the expected KL- |
| divergence: |
| |
| |
| Update the target value networks: |
| |
| |
| |
Figure 6From left to right, first, the robot learns to reach the goal. Second, avoid collisions with dynamic obstacles. Third, keep reaching the goal.
Figure 7Performance comparison of SAC and Deep Deterministic Policy Gradient (DDPG) algorithm in the first environment. (A) Accuracy of different algorithms shown in error bar line graph. (B) A safe rate of different algorithms in the error bar line graph. (C) The cumulative reward for each episode. (D) Loss for each episode. Each episode corresponds to 100 time steps.
Figure 8Performance comparison of SAC and DDPG algorithm in the second environment. (A) Accuracy of different algorithms shown in error bar line graph. (B) A safe rate of different algorithms in the error bar line graph. (C) The cumulative reward for each episode. (D) Loss for each episode. Each episode corresponds to 100 time steps.