Reinforcement learning · Simulation
DiffDriveRL
I’m training a simulated two-wheel robot to navigate to waypoints on a VEX-sized field.
I worked on this with Daniel Berlin through Paideia’s Professional Immersions program.
The setup
I’m using PPO, Gymnasium, and SKRL. The robot controls each wheel separately, and the field is 144 inches square. I started with clear routes, then added obstacles and multiple waypoints. I’ve also added blocked routes, recovery starts, and a final heading it needs to reach.
I can replay saved runs and compare a new policy against the previous one before replacing it. That matters when a higher training score can still mean the robot is doing something weird.
This project runs entirely in simulation.
The robot kept circling the waypoint.
One of the most interesting issues was when it kept driving around the target instead of into it. I’d made being near the waypoint too valuable compared with actually making progress. It found something that scored well, even though it was obviously wrong.
Small changes to the reward function could completely change what it did. It’s been cool to watch it go from random movement to weird, unstable strategies to something that starts to look intentional.