CrowdSurfer: Sampling Optimization Augmented with Vector-Quantized Variational AutoEncoder for Dense Crowd Navigation
Contributors: Naman Kumar*1, Antareep Singha*1, Laksh Nanwani*1, Dhruv Potdar1, Tarun R.1, Fatemeh Rastgar2, Simon Idoko2, Arun Kumar Singh2, K. Madhava Krishna1
1Robotics Research Center, IIIT Hyderabad; 2University of Tartu, Estonia
* denotes equal contribution
Accepted at IEEE International Conference on Robotics and Automation (ICRA) 2025
Navigation amongst densely packed crowds remains a challenge for mobile robots. The complexity increases further if the environment layout changes making the prior computed global plan infeasible. In this paper, we show that it is possible to dramatically enhance crowd navigation by just improving the local planner. Our approach combines generative modelling with inference time optimization to generate sophisticated long-horizon local plans at interactive rates. More specifically, we train a Vector Quantized Variational AutoEncoder to learn a prior over the expert trajectory distribution conditioned on the perception input. At run-time, this is used as an initialization for a sampling-based optimizer for further refinement. Our approach does not require any sophisticated prediction of dynamic obstacles and yet provides state-of-the- art performance. In particular, we compare against the recent DRL-VO approach and show a 40% improvement in success rate and a 6% improvement in travel time.
This repository contains the code for the paper "CrowdSurfer: Sampling Optimization Augmented with Vector-Quantized Variational AutoEncoder for Dense Crowd Navigation".
All configuration is done via this configuration file.
mkdir -p ~/crowdsurfer_ws/src
cd ~/crowdsurfer_ws/src
git clone https://github.com/Smart-Wheelchair-RRC/CrowdSurfer.git
- Create Conda environment
conda create -n crowdsurfer python=3.10 -y
conda activate crowdsurfer
- Install Dependencies
pip install "open3d>=0.19.0"
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
pip install "jax[cuda12]"
pip install "hydra-core>=1.3.2"
pip install "accelerate>=1.6.0"
pip install rosbag --extra-index-url https://rospypi.github.io/simple/
- Install UV from here or by running:
curl -LsSf https://astral.sh/uv/install.sh | sh
- Setup environment and sync dependencies
uv venv --python 3.10 --system-site-packages CrowdSurfer/src/CrowdSurfer/.venv
source CrowdSurfer/src/CrowdSurfer/.venv/bin/activate
uv sync --active --project CrowdSurfer/src/CrowdSurfer
Alternatively, using the same conda environment as above, run:
export VIRTUAL_ENV=$CONDA_PREFIX
uv sync --active --project CrowdSurfer/src/CrowdSurfer
Running the simulation in Gazebo requires pedsim_ros (to simulate the humans). To install pedsim_ros and other dependencies, proceed as follows: The default version is ROS Noetic.
git clone https://github.com/TempleRAIL/robot_gazebo.git
git clone https://github.com/Smart-Wheelchair-RRC/pedsim_ros_with_gazebo.git
wget https://raw.githubusercontent.com/zzuxzt/turtlebot2_noetic_packages/master/turtlebot2_noetic_install.sh
sudo sh turtlebot2_noetic_install.sh
cd ~/crowdsurfer_ws
rosdep install --from-paths src --ignore-src -r -y
catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3
source devel/setup.bash
cd src/CrowdSurfer/src/CrowdSurfer && mkdir checkpoints
pip install gdown
gdown https://drive.google.com/drive/folders/1HSRrbuwwNk9_C1WKN9qnStjemFLukO8s -O checkpoints --folder
cd ~/crowdsurfer_ws
Download checkpoints from the drive link
Replace the checkpoint paths for VQVAE and PixelCNN in the configuration file
From within crowdsurfer_ws/ in tmux, run:
bash src/CrowdSurfer/src/CrowdSurfer/run_CrowdSurfer.sh
Bibtex -
@misc{kumar2025crowdsurfersamplingoptimizationaugmented,
title={CrowdSurfer: Sampling Optimization Augmented with Vector-Quantized Variational AutoEncoder for Dense Crowd Navigation},
author={Naman Kumar and Antareep Singha and Laksh Nanwani and Dhruv Potdar and Tarun R and Fatemeh Rastgar and Simon Idoko and Arun Kumar Singh and K. Madhava Krishna},
year={2025},
eprint={2409.16011},
archivePrefix={arXiv},
primaryClass={cs.RO},
url={https://arxiv.org/abs/2409.16011},
}