Introducing DWARL: A fast Reinforcement Learning based local controller for Nav2
The authors introduce DWARL, an open-source reinforcement learning-based local controller for the Nav2 navigation stack. Developed to address social navigation challenges on robots with limited compute resources, the system uses Proximal Policy Optimization (PPO) to learn control policies from sensor data over several training episodes. The project is available via Pixi or Docker and includes a training gym for tuning parameters. The team acknowledges current issues with reward functions causing unstable robot motion and invites community feedback and fixes.
We are happy to share that we recently presented DWARL: A fast Reinforcement Learning (RL) based local controller for Nav2, at ROSCon Belgium. Thank you for the opportunity, ROSCon BE
The key idea of our approach is to train a network that can predict an appropriate local control action, given sensor data. This is learned over multiple episodes of a Reinforcement Learning training session where the “correct” action for a given observation is rewarded. The “correct” action can be user-defined (For example, avoiding obstacles, sticking to the planned global path, reaching the goal within a certain tolerance etc). We use the widely popular Proximal Policy Optimization principle to adjust the weights of the learned network over several roll-outs. It takes about a couple of hours to converge and then we can use the network as a local controller plugin on the Nav2 stack.
The work on this was inspired by a social navigation problem for a robot with tight compute constraints. As a result, iterative or optimization based methods in local controllers wasn’t a favorable option to us.
The project is fully open source and we have set it up so that you can try it on your robot too quite quickly with Pixi or plain Docker. Also, you can use the overall “training gym” to tune the parameters of your favorite local controller for your specific problem, while you may choose to work on other interesting problems to solve. This is a tad bit more work, so I wouldn’t qualify this as “quick”
We are currently working on fixing some niggles in our reward functions that makes the robot go about its task in a wobbly way. So, feel free to join us in fixing this if this is a domain that you find exciting.
And finally, if your attempts at following the documentation lead to different behaviors than described, flag an issue and we will look into it!
P.S: We will put the presentation slides shortly here.