open-airlab/UNav-Sim
关于
Visually Realistic Underwater Robotics Simulator UNav-Sim
科学与工程可以做什么
- Open-source :heavy_check_mark:
- High-fidelity rendering using Unreal Engine 5 :heavy_check_mark:
- Underwater physics and robot models :heavy_check_mark:
- Linux and Windows compatible :heavy_check_mark:
实测星标增长
- 24小时
- +1
- 7天
- +4
- 15天
- +6
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文🌊🤖 Introducing UNav-Sim: The Ultimate Underwater Robotics Simulator! 🚀

UNav-Sim is an open-source cutting-edge underwater robotics simulator tool that leverages the power of Unreal Engine 5 (UE5) and AirSim to provide highly detailed rendering and simulation capabilities. Whether you're a researcher, developer, or robotics enthusiast, UNav-Sim offers a platform for you to dive deep into the world of underwater robotics.
Key Features:
- Open-source :heavy_check_mark:
- High-fidelity rendering using Unreal Engine 5 :heavy_check_mark:
- Underwater physics and robot models :heavy_check_mark:
- Linux and Windows compatible :heavy_check_mark:
- ROS1 and ROS2 support :heavy_check_mark:
Example environments: MIMIR
![]() |
![]() |
![]() |
![]() |
Index
4. UNav-Sim ros navigation stack
1. Installation Instructions (for Ubuntu OS)
UNav-Sim relies in Unreal Engine 5 for generating realistic renderings. First, install UE5 and then proceed to install UNav-Sim
1.1. UE5
Make sure you are registered with Epic Games. This is required to get source code access for Unreal Engine.
Clone Unreal 5.1 in your favorite folder and build it (this may take a while!)
# go to the folder where you clone GitHub projects
git clone -b 5.1 [email protected]:EpicGames/UnrealEngine.git
cd UnrealEngine
./Setup.sh
./GenerateProjectFiles.sh
make
1.2. UNav-Sim
Clone this repo in your favourite folder:
git clone [email protected]:open-airlab/UNav-Sim.git
cd UNav-Sim
We provide you scripts to automatically setup and build UNav-Sim:
./setup.sh
./build.sh
# use ./build.sh --debug to build in debug mode
Troubleshooting: If you're installing UNav-Sim from Ubuntu 22, then instead of vulkan-utils you will need to install vulkan-tools:
sudo apt update
sudo apt install vulkan-tools
1.3. Setting up the UE5 environment
cd ~/UNav-Sim/Unreal/Environments/Blocks
right-click on Blocks.uproject, select Unreal Engine Generate Project Files
2. Running the simulation
- Add the settings.json file to C:\Users[username]\Documents\AirSim
- open the project using your IDE
- Run and debug using Launch BlocksEditor(DebugGame)
3. Getting Started - HelloROV Example
The HelloROV example demonstrates how to use the UNav-Sim API in combination with the AirSim API to control the ROV's thrusters and execute a Circular Trajectory Following Controller. This example drives the ROV along a circular path while maintaining a fixed altitude and yaw angle.
The controller generates a reference for the ROV to follow along a circular trajectory. Parameters like radius, angular velocity, altitude, and yaw are defined. At each time step, the controller calculates the reference position in the trajectory and adjusts the control signal.
The controller calculates the required wrench (force and torque) that corresponds to the ROV's desired motion. The wrench is then mapped to a set of motor commands using a predefined thrust allocation matrix. The wrench is converted into PWM signals for the ROV's thrusters. These PWM signals control the speed of the thrusters, which are responsible for driving the ROV along the planned trajectory.
The control loop operates by continuously generating reference positions and calculating corresponding control signals (wrench). Feedback from the ROV (such as position or orientation data) can be used to adjust the control strategy in real-time, enabling the ROV to stay on the trajectory.
The AirSim API facilitates communication between the control system and the ROV. The PWM signals are sent asynchronously to the ROV’s motors using the API's moveByMotorPWMsAsync function, allowing the ROV to execute the commands.
Key APIs for Control
PWM Control (Motor Control API): The AirSim API function
moveByMotorPWMsAsync(pwm, duration)sends the calculated PWM values to the ROV’s motors, allowing for control of the thrusters.Feedback: Feedback such as position, velocity, and orientation can be accessed using the AirSim API to monitor the ROV’s progress and adjust the controller’s behavior accordingly.
4. UNav-Sim ros navigation stack
The UNav-Sim ROS navigation stack, as detailed in the paper, encompasses various components essential for underwater vehicle navigation. It integrates a Nonlinear Model Predictive Controller (NMPC) tailored for the BlueROV2 Heavy model and a pipe-following path planner. Additionally, the stack incorporates several Visual Simultaneous Localization and Mapping (VSLAM) algorithms.
Components:
NMPC for BlueROV2 Heavy Model
Located in the ROS 1 repository, this component provides a Nonlinear Model Predictive Controller (NMPC) specifically designed for the BlueROV2 Heavy model. The controller facilitates precise and dynamic control of the underwater vehicle.
Repository Path:\UNav-Sim\ros\src\UNav-Sim_NMPCPipe Following Path Planner
The stack includes a path planner neural network trained for pipe-following task, essential for various underwater inspection and maintenance missions.Visual Simultaneous Localization and Mapping (VSLAM) Algorithms
The UNav-Sim ROS navigation stack incorporates several Visual Simultaneous Localization and Mapping (VSLAM) algorithms. These algorithms enable the vehicle to localize itself in its environment while simultaneously mapping the surroundings using visual sensor data.
Repository Path for ROS 2:\UNav-Sim\ros2\src\robot_visual_localization
5. UNav-Sim documentation
Citation
If you use this framework in your work, please cite the following paper:Link to paper
@inproceedings{amer2023unav,
title={UNav-Sim: A Visually Realistic Underwater Robotics Simulator and Synthetic Data-generation Framework},
author={Amer, Abdelhakim and {\'A}lvarez-Tu{\~n}{\'o}n, Olaya and U{\u{g}}urlu, Halil {\.I}brahim and Sejersen, Jonas Le Fevre and Brodskiy, Yury and Kayacan, Erdal},
booktitle={2023 21st International Conference on Advanced Robotics (ICAR)},
pages={570--576},
year={2023},
organization={IEEE}
}
@inproceedings{alvarez2023mimir,
title={Mimir-uw: A multipurpose synthetic dataset for underwater navigation and inspection},
author={{\'A}lvarez-Tu{\~n}{\'o}n, Olaya and Kanner, Hemanth and Marnet, Luiza Ribeiro and Pham, Huy Xuan and le Fevre Sejersen, Jonas and Brodskiy, Yury and Kayacan, Erdal},
booktitle={2023 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS)},
pages={6141--6148},
year={2023},
organization={IEEE}
}
Questions and inquiries
For questions and inquiries please create a GitHub issue and we will try to respond as soon a possible!
⭐ Please star this repository if you find it useful! ⭐
Thank you for using this project! 🌟
探索相关项目
加载中…



