arclab-hku/P2M
[RA-L'25] A Simple LiDAR-centric End-to-end Navigation Framework in Dynamic Environments
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
[!IMPORTANT] 🌟 Stay up to date at arclab.hku.hk!
:mechanical_arm: P2M
:page_facing_up: Paper | :movie_camera: Demo | :rocket: Project Page (Coming Soon)
:black_nib: Bowen Xu, Zexuan Yan, M. Lu, X. Fan, Y. Luo, Y. Lin, Z. Chen, Y. Chen, Q. Qiao, P. Lu
:e-mail: Primary Contact: Bowen Xu (link.bowenxu@connect.hku.hk) and Zexuan Yan (ryan2002@connect.hku.hk)
:fire: Highlights
- An efficient LiDAR representation combining the depth and environment change sensing.
- A generalizable RL training for dynamic obstacle avoidance.
- A lightweight end-to-end autonomous flight system from point to motion.
Table of Contents
- :movie_camera: Demo
- :loudspeaker: News
- :hugs: Model Zoo
- :video_game: Getting Started
- :fire: Training Recipe
- :rocket: Testing Guide
- :pencil: Citation
- :nerd_face: Acknowledgments
:movie_camera: Demo
| Real-world robot experiments (1x speed) | |
:loudspeaker: News
- [2025/12] The code of P2M v1.0 is released. Please check it out!
:hugs: Model Zoo
| Model Name | Backbone | Path | Note |
|---|---|---|---|
| p2m-deafult | CNN+MLP | Release/p2m_model/p2m_default.pt | The p2m model trained from scratch. |
:video_game: Getting Started
:zero: We use conda to manage the environment
# Create the conda environment
conda create -n p2m python=3.10
conda activate p2m
cp -r conda_setup/etc $CONDA_PREFIX
# Activate the conda environment
conda activate p2m
conda config --add channels conda-forge
conda config --set channel_priority strict
:one: Install Isaac Sim and Isaac Lab
[!NOTE] Please refer to this doc for an example of how to install isaac sim and isaac lab
:two: Install dependencies
# Install the project in editable mode at the project root
pip install --upgrade pip
pip install -e .
# Install additional dependencies
pip install setproctitle huggingface_hub
pip install usd-core==23.11 lxml==4.9.4 tqdm xxhash
pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu118
pip install tensordict==0.3.2 --no-deps
:three: Build the repository
catkin build
:four: Download the pretrained models
- p2m_default.pt: The pretrained p2m policy model, for testing only. Put it into
./models. - neuflow_mixed.pth: The pretrained flow estimation model, for training and testing. Put it into
./resources/NeuFlow_v2.
:fire: Training Recipe
:zero: Train the P2M policy
cd scripts
python train.py
:one: Adjust the training parameters
Fill in your wandb information in ./scripts/config/train.yaml.
wandb:
entity: # your workspace name
project: # your project name
[!NOTE] More parameters can be adjusted in
./scripts/config/train.yaml(training) and./cfg/task/train_env.yaml(environment).
:rocket: Testing Guide
:zero: Test the P2M policy
# Terminal 1
source devel/setup.bash
roslaunch map_generator sim_test.launch
# Terminal 2
source devel/setup.bash
roslaunch lidar scanner.launch
# Terminal 3
conda activate p2m
cd scripts
python infer.py
Use the 2D Nav Goal to trigger the flight!
:one: Adjust the testing environment
To change the obstacle number and density in ./src/uav_simulator/map_generator/launch/sim_test.launch
<!-- static obstacle number -->
<param name="map/obs_num" value=""/>
<!-- dynamic obstacle number -->
<param name="map/moving_obs_num" value=""/>
| Testing in different obstacle densities (1x speed) | |
[!NOTE] More parameters can be adjusted in
./scripts/infer.py(checkpoint and goal) and./src/uav_simulator/map_generator/launch/sim_test.launch(environment).
:pencil: Citation
If you find our code or models useful in your work, please cite our paper:
@article{xu2025flow,
title={Flow-Aided Flight Through Dynamic Clutters From Point to Motion},
author={Xu, Bowen and Yan, Zexuan and Lu, Minghao and Fan, Xiyu and Luo, Yi and Lin, Youshen and Chen, Zhiqiang and Chen, Yeke and Qiao, Qiyuan and Lu, Peng},
journal={IEEE Robotics and Automation Letters},
volume={11},
number={1},
pages={218--225},
year={2025},
publisher={IEEE}
}
:nerd_face: Acknowledgments
We would like to express our gratitude to the following projects, which have provided significant support and inspiration for our work:
- OmniDrones: Underlying training toolchain for reinforcement learning on multicopters.
- NeuFlow v2: Robust and efficient neural optical flow estimation on edge devices.
Similar Projects
Discover other similar projects and AI models.
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...
🧑🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠
🧑🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠
Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.
Library of deep learning models and datasets designed to make deep learning more accessible and accelerate ML research.
A curated list of Artificial Intelligence (AI) courses, books, video lectures and papers.
Python Implementation of Reinforcement Learning: An Introduction
PyTorch version of Stable Baselines, reliable implementations of reinforcement learning algorithms.