Norwayntnu-arl/active-perception-RL-navigation
This repository provides the source code for the paper Reinforcement Learning for Active Perception in Autonomous Navigation.
Featured achievements
The project's latest awards
#1 Repository of the month
#1 Repository of the month
#1 Repository of the week
active-perception-RL-navigation
This repository contains the source code for the paper: Reinforcement Learning for Active Perception in Autonomous Navigation.
A video demonstrating the work is available here.
🛠️ Installation
-
Install Isaac Gym and Aerial Gym Simulator
Follow the instructions provided in the respective repository.
⚠️ Important Note: Change to Argument Parser in Isaac Gym's
gymutil.pyBefore installing the Aerial Gym Simulator, you must modify the Isaac Gym installation. The argument parser in Isaac Gym may interfere with additional arguments required by other learning frameworks. To resolve this, you need to modify line 337 of the
gymutil.pyfile located in theisaacgymfolder.Change the following line:
args = parser.parse_args()to:
args, _ = parser.parse_known_args() -
Set up the environment
Once the installation is successful, activate the
aerialgymenvironment:cd ~/workspaces/ && conda activate aerialgym -
Clone this repository
Clone the repository by running the following command:
git clone git@github.com:ntnu-arl/active-perception-RL-navigation.git -
Install active-perception-RL-navigation
Navigate to the cloned repository and install it using the following command:
cd ~/workspaces/active-perception-RL-navigation/ pip install -e .
🚀 Running the Examples
The standalone examples, along with a pre-trained RL policy, are available in the examples directory.
The ready-to-use policy (used in the work described in Reinforcement Learning for Active Perception in Autonomous Navigation) can be found under: examples/pre-trained_network. These examples illustrate policy inference in a corridor-like environment under different levels of complexity, specifically with 10, 20, and 30 obstacles.
10-Obstacle Example
Run the following:
cd ~/workspaces/active-perception-RL-navigation/examples/
conda activate aerialgym
bash example_10obstacles.sh
You should now be able to observe the trained policy in action — performing a navigation task with actively actuated camera sensor in the environment:
https://github.com/user-attachments/assets/d0894097-a514-4932-af57-fffdff8fb721
20-Obstacle Example
Run the following:
cd ~/workspaces/active-perception-RL-navigation/examples/
conda activate aerialgym
bash example_20obstacles.sh
🎥 Demo:
https://github.com/user-attachments/assets/97fb85a8-afbd-40ea-b548-3eb6b70257e6
30-Obstacle Example
Run the following:
cd ~/workspaces/active-perception-RL-navigation/examples/
conda activate aerialgym
bash example_30obstacles.sh
🎥 Demo:
https://github.com/user-attachments/assets/151fc99a-9f91-4ad5-bf94-ab2e0fae8fa2
🏋️ RL Training
Running Training
To train your first active perception RL navigation policy, run:
conda activate aerialgym
cd ~/workspaces/active-perception-RL-navigation/
python -m rl_training.train_aerialgym --env=navigation_active_camera_task --experiment=testExperiment
By default, the number of environments is set to 1024. If your GPU cannot handle this load, reduce it by adjusting the num_envs parameter in /src/config/task/navigation_active_camera_task_config.py:
num_envs = 1024
By default, the training environment contains 38 obstacles. You can modify this by editing the num_assets parameter in /src/config/assets/env_object_config.py:
class object_asset_params(asset_state_params):
num_assets = 35
and
class panel_asset_params(asset_state_params):
num_assets = 3
Loading Trained Models
To load a trained checkpoint and perform inference only (no training), follow these steps:
-
For clear visualization (to avoid rendering overhead), reduce the number of environments (e.g., to 16) and enable the viewer by modifying
/src/config/task/navigation_active_camera_task_config.py:From:
num_envs = 512 use_warp = True headless = TrueTo:
num_envs = 16 use_warp = True headless = False -
For a better view during inference, consider excluding the top wall from the corridor-like environments by modifying the
/src/config/env/env_active_camera_with_obstacles.pyfile:"top_wall": False, # excluding top wall -
Finally, execute the inference script with the following command:
conda activate aerialgym cd ~/workspaces/active-perception-RL-navigation/ python -m rl_training.enjoy_aerialgym --env=navigation_active_camera_task --experiment=testExperimentThe default viewer is set to follow the agent. To disable this feature and inspect other parts of the environment, press
Fon your keyboard.
📄 Citing
If you use or reference this work in your research, please cite the following paper:
G. Malczyk, M. Kulkarni and K. Alexis, "Reinforcement Learning for Active Perception in Autonomous Navigation", Accepted to the IEEE International Conference on Robotics and Automation (ICRA) 2026
@article{malczyk2025reinforcement,
title={Reinforcement Learning for Active Perception in Autonomous Navigation},
author={Malczyk, Grzegorz and Kulkarni, Mihir and Alexis, Kostas},
journal={arXiv preprint arXiv:2602.01266},
year={2026}
}
Contact
For inquiries, feel free to reach out to the authors:
-
Grzegorz Malczyk
-
Mihir Kulkarni
-
Kostas Alexis
This research was conducted at the Autonomous Robots Lab, Norwegian University of Science and Technology (NTNU).
For more information, visit our website.
Acknowledgements
This material was supported by the Research Council of Norway under Award NO-338694 and the Horizon Europe Grant Agreement No. 101119774.
Additionally, this repository incorporates code and helper scripts from the Aerial Gym Simulator.
Similar Projects
Discover other similar projects and AI models.
Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.
A Robust and Efficient Trajectory Planner for Quadrotors
Teach-Repeat-Replan: A Complete and Robust System for Aggressive Flight in Complex Environments
A robust UAV local planner based on the ICRA2020 paper: Robust Real-time UAV Replanning Using Guided Gradient-based Optimization and Topological Paths
openpilot is an operating system for robotics. Currently, it upgrades the driver assistance system on 300+ supported cars.
🧑🏫 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.