ROS 2 Humble port: This repository provides a ROS 2 Humble adaptation of the original ROS 1 FUEL framework, maintained by Zhang RY [email protected]. The original FUEL algorithm, publication, and author attribution are preserved below.
News:
- Feb 24, 2023: the code for multi-UAV exploration is released! check this link.
- Aug 24, 2021: The CPU-based simulation is released, CUDA is no longer required. Richer exploration environments are provided.
FUEL is a powerful framework for Fast UAV ExpLoration. Our method is demonstrated to complete challenging exploration tasks 3-8 times faster than state-of-the-art approaches at the time of publication. Central to it is a Frontier Information Structure (FIS), which maintains crucial information for exploration planning incrementally along with the online built map. Based on the FIS, a hierarchical planner plans frontier coverage paths, refine local viewpoints, and generates minimum-time trajectories in sequence to explore unknown environment agilely and safely. Try Quick Start to run a demo in a few minutes!
Recently, we further develop a fully decentralized approach for exploration tasks using a fleet of quadrotors. The quadrotor team operates with asynchronous and limited communication, and does not require any central control. The coverage paths and workload allocations of the team are optimized and balanced in order to fully realize the system's potential. The associated paper has been published in IEEE TRO. Check code here.
Complete videos: video1, video2.
Authors: Boyu Zhou from SYSU and Shaojie Shen from the HUKST Aerial Robotics Group.
Please cite our paper if you use this project in your research:
- FUEL: Fast UAV Exploration using Incremental Frontier Structure and Hierarchical Planning, Boyu Zhou, Yichen Zhang, Xinyi Chen, Shaojie Shen, IEEE Robotics and Automation Letters (RA-L) with ICRA 2021 option
@article{zhou2021fuel,
title={FUEL: Fast UAV Exploration Using Incremental Frontier Structure and Hierarchical Planning},
author={Zhou, Boyu and Zhang, Yichen and Chen, Xinyi and Shen, Shaojie},
journal={IEEE Robotics and Automation Letters},
volume={6},
number={2},
pages={779--786},
year={2021},
publisher={IEEE}
}
Please kindly star ⭐ this project if it helps you. We take great efforts to develope and maintain it 😁😁.
This copy targets ROS 2 Humble and colcon. The active launch files are ROS 2 Python launch
files under fuel_planner/exploration_manager/launch.
Use Ubuntu 22.04 with ROS 2 Humble. Install ROS 2 first, then install the common build tools and non-ROS dependencies:
sudo apt update
sudo apt install python3-colcon-common-extensions python3-rosdep libarmadillo-dev libnlopt-dev
source /opt/ros/humble/setup.bashIf rosdep has not been initialized on the machine yet:
sudo rosdep init
rosdep updateBuild from the workspace root. Replace /path/to/FUEL with your own workspace path. This
repository should be under $FUEL_WS/src/FUEL.
export FUEL_WS=/path/to/FUEL
cd "$FUEL_WS"
source /opt/ros/humble/setup.bash
rosdep install --from-paths src --ignore-src -r -y --rosdistro humble
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo
source install/setup.bashAfter editing C++ or launch/config files, rebuild the affected packages and source the workspace again:
colcon build --packages-select <package_name>
source install/setup.bashOpen RViz2 first:
export FUEL_WS=/path/to/FUEL
cd "$FUEL_WS"
source /opt/ros/humble/setup.bash
source install/setup.bash
ros2 launch exploration_manager rviz.launch.pyIn a second terminal, start the simulator and planner:
export FUEL_WS=/path/to/FUEL
cd "$FUEL_WS"
source /opt/ros/humble/setup.bash
source install/setup.bash
ros2 launch exploration_manager exploration.launch.pyBy default RViz2 shows the office environment. Trigger exploration with the 2D Nav Goal tool in
RViz2. The goal is published on /move_base_simple/goal. Unexplored structures are shown in grey,
explored voxels are shown in color, and the FoV and trajectories are displayed.
rviz.launch.py starts:
rviz2with plan_manage/config/traj.rviztf2_ros/static_transform_publisherfor theworld -> navigationtransform
exploration.launch.py starts the main simulation and planning graph:
exploration_manager/exploration_nodeplan_manage/traj_serverwaypoint_generator/waypoint_generatormap_generator/map_pubso3_quadrotor_simulator/quadrotor_simulator_so3so3_control/so3_control_nodeso3_disturbance_generator/so3_disturbance_generatorodom_visualization/odom_visualizationlocal_sensing_node/pcl_render_node
Important runtime topics:
- Goal input:
/move_base_simple/goal - Global map:
/map_generator/global_cloud - Rendered sensor output:
/pcl_render_node/depth,/pcl_render_node/cloud,/pcl_render_node/sensor_pose - Odometry:
/visual_slam/odom,/state_ukf/odom - Planning command:
/planning/pos_cmd,so3_cmd - Visualization:
/planning/travel_traj,/planning_vis/*
map_pub publishes /map_generator/global_cloud when a new subscriber appears instead of
continuously streaming the same static map. This keeps RViz2 stable and avoids unnecessary point
cloud traffic.
- The current local sensing path is the CPU
local_sensing_node/pcl_render_node. uav_simulator/Utils/rviz_pluginsstill contains ROS 1 RViz plugin code and is isolated withCOLCON_IGNORE.uav_simulator/Utils/multi_map_server/quadrotor_msgsis isolated withCOLCON_IGNOREbecause it duplicates the canonical ROS 2 interface package atuav_simulator/Utils/quadrotor_msgs.
The exploration environments in our simulator are represented by .pcd files. We provide several sample environments, which can be selected in simulator.launch.py:
# Change office.pcd to specify the exploration environment.
# We provide office.pcd, office2.pcd, office3.pcd and pillar.pcd in this repo.
map_file = PathJoinSubstitution([FindPackageShare("map_generator"), "resource", "office.pcd"])Other examples are listed below.
office2.pcd:
office3.pcd:
pillar.pcd:
If you want to use your own environments, simply place the .pcd files in map_generator/resource, and follow the comments above to specify it. You may also need to change the map size launch arguments and the explored-space bounding box. Map size can be overridden from the command line:
ros2 launch exploration_manager exploration.launch.py map_size_x:=50.0 map_size_y:=50.0 map_size_z:=10.0The explored-space bounding box is passed from
exploration.launch.py to
algorithm.launch.py:
"box_min_x": "-10.0",
"box_min_y": "-15.0",
"box_min_z": "0.0",
"box_max_x": "10.0",
"box_max_y": "15.0",
"box_max_z": "2.0",To create your own .pcd environments easily, check the next section.
We provide a simple ROS2 tool to create .pcd environments from RViz2 clicks. The workflow uses
three terminals: one for the click-map node, one for RViz2, and one for recording the generated
point cloud.
In terminal 1, start the click-map node:
export FUEL_WS=/path/to/FUEL
cd "$FUEL_WS"
source /opt/ros/humble/setup.bash
source install/setup.bash
ros2 run map_generator click_mapIn terminal 2, start RViz2:
export FUEL_WS=/path/to/FUEL
cd "$FUEL_WS"
source /opt/ros/humble/setup.bash
source install/setup.bash
ros2 launch exploration_manager rviz.launch.pyIn RViz2, use the 2D Nav Goal tool (shortcut G) to create the map:
- Click two points to create one wall.
- Click another two points to create the next wall.
- Repeat until the environment is complete.
Each pair of clicked points forms one wall. The generated cloud is published on
/map_generator/click_map. If the wall is not visible in RViz2, add or enable a PointCloud2
display and set its topic to:
/map_generator/click_map
An example is illustrated:
In terminal 3, after you have clicked at least one wall, check that the generated cloud is non-empty:
export FUEL_WS=/path/to/FUEL
cd "$FUEL_WS"
source /opt/ros/humble/setup.bash
source install/setup.bash
ros2 topic echo --once /map_generator/click_mapThe output should contain a non-zero width. Then record the map:
export FUEL_WS=/path/to/FUEL
cd "$FUEL_WS"
source /opt/ros/humble/setup.bash
source install/setup.bash
ros2 run map_generator map_recorder /tmp/This saves:
/tmp/tmp.pcd
You may replace /tmp/ with another output directory. To use the generated map in the simulator,
copy it into map_generator/resource:
cp /tmp/tmp.pcd "$FUEL_WS/src/FUEL/uav_simulator/map_generator/resource/my_map.pcd"Then edit simulator.launch.py and
point map_file to the new file:
map_file = PathJoinSubstitution([FindPackageShare("map_generator"), "resource", "my_map.pcd"])If the workspace was not built with --symlink-install, rebuild the affected packages before
relaunching:
export FUEL_WS=/path/to/FUEL
cd "$FUEL_WS"
source /opt/ros/humble/setup.bash
colcon build --packages-select map_generator exploration_manager
source install/setup.bashFinally, launch the exploration demo again:
ros2 launch exploration_manager exploration.launch.pyWe use NLopt for non-linear optimization and use LKH for travelling salesman problem.










