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 ~20 mins to converge over ~150 iterations (based on turtlebot demo example in the repo) 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!
Presentation slides:
DWARL_ROSCon_Visual 2.pptx
Thanks @Timple for presenting this.
A big shout out to @bramo for spearheading this work since starting off his master thesis two years ago at Nobleo Technology on this topic and meticulously working towards setting up the training gym!