← All projects

2021

Learning Footstep Navigation with Reinforcement Learning

My Honours BSc project. Agents in Unity learn where to place each footstep to reach a goal, a reinforcement-learning take on footstep-based crowd navigation.

  • Unity
  • C#
  • ML-Agents
  • PyTorch
  • Reinforcement learning
  • Honours BSc project, UVic
  • Unity ML-Agents
  • Parallel training arenas
Eight parallel Unity training arenas, each with an agent placing footsteps toward a goal marker.

With Yide Ma.

Idea

Most crowd simulations steer characters as sliding discs. The paper Footstep Navigation for Dynamic Crowds plans individual footsteps instead, which gives more natural, biomechanically plausible motion. We reimplemented the footstep model in Unity and replaced the hand-written planner with reinforcement-learning policies trained with Unity ML-Agents.

What we built

  • A footstep-based locomotion model in Unity (C#), where each action is the next step’s placement.
  • Training environments where agents learn to walk toward a goal, then along corridors.
  • Several RL algorithms and steering strategies compared on the same task, trained in many parallel arenas (the animation above shows eight).

Training

Training loss curve from the footstep agent

Training curve for the footstep policy.

Stack

Unity 2019.4, ML-Agents 2.0, Python 3.9, PyTorch 1.12 with CUDA 11.6.