| Algorithm 1 Visuomotor Control for Humanoid Loco-manipulation Tasks |
|
Require: batch size M, trajectory length N, number of actors K, replay size R, exploration constant , initial learning rates and |
| Learner |
| 1: Initialize visual encoder weights v, which is shared by actor and critic networks |
| 2: Initialize the remaining network weights at random |
| 3: Initialize target weights |
| 4: Launch K actors and replicate network weights to each actor |
| 5: for do |
| 6: Sample M transitions of length N from replay with priority |
| 7: Construct the target distributions |
| 8: Compute the actor and critic updates |
| 9: Update network parameters |
| 10: If , update the target networks |
| 11: If , replicate network weights to the actors |
| 12: end for |
| 13: return policy parameters |
| Actor |
| 1: repeat |
| 2: wait until current movement step finishes |
| 3: Sample action |
| 4: Esecute action , observe reward r and state , which includes an one-hot vector representing current FSM state |
| 5: Calculate priority p using Equation (6) |
| 6: Store in replay |
| 7: until Learner finishes |