# dyn_small_obs_avoidance **Repository Path**: marslab/dyn_small_obs_avoidance ## Basic Information - **Project Name**: dyn_small_obs_avoidance - **Description**: No description available - **Primary Language**: C++ - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-01-07 - **Last Updated**: 2024-08-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dyn_small_obs_avoidance ### Avoiding dynamic small obstacles with onboard sensing and computating on aerial robots This repository is used for UAV dynamic small obstacles avoidance. It is a complete system for lidar-based UAV, including FAST-LIO slam, time-accumulated KD-Tree mapping and kinodynamic A* search modules. It is able to avoid dynamic small obstacles (down to 20mm diameter bars) by running at 50Hz. ![RAL_coverfigure6](https://user-images.githubusercontent.com/23183555/109411264-d39ccf00-79db-11eb-85d3-764a6b17235d.png) ![outdoor2_movingobs](https://user-images.githubusercontent.com/23183555/109411282-f202ca80-79db-11eb-8ae0-704bda25ff12.png) Related paper: "Avoiding dynamic small obstacles with onboard sensing and computating on aerial robots", available on arxiv now https://arxiv.org/abs/2103.00406. Related video: https://youtu.be/pBHbQ_J1Qhc ## 1. Prerequisites As the same as the prerequisites as FAST-LIO. ### 1.1 **Ubuntu** and **ROS** Ubuntu >= 18.04. ROS >= Melodic. [ROS Installation](http://wiki.ros.org/ROS/Installation) ### 1.2. **PCL && Eigen** PCL >= 1.8, Follow [PCL Installation](https://pointclouds.org/downloads/). Eigen >= 3.3.4, Follow [Eigen Installation](http://eigen.tuxfamily.org/index.php?title=Main_Page). ## 2. Build Clone the repository and catkin_make: ``` cd ~/catkin_ws/src git clone https://github.com/hku-mars/dyn_small_obs_avoidance.git cd .. catkin_make ``` # 3.Run demo ### 3.1 Start program ``` source devel/setup.bash roslaunch path_planning demo.launch ``` ### 3.2 Run rosbag or directly fly You can download our demos rosbag from https://drive.google.com/drive/folders/1knQwnrbwunGIvXzOL6wWKkCtOkGE22bG?usp=sharing And play the bag by: ``` rosbag play XXX.bag ``` ### 3.3 Set target point ``` rostopic pub /goal geometry_msgs/PoseStamped '{header: {stamp: now, frame_id: "camera_init"}, pose: {position: {x: 5.0, y: 0.0, z: 1.0}, orientation: {w: 1.0}}}' ``` You can change the target point by setting different value of 'x','y','z' in the above command. # 4.Run with other equipments You can also run this planning program as a module with other point cloud input from other sensors (like depth camera D435i). But we have not yet test it on depth cameras. First, change the point cloud topic to your point cloud topic name in path_planning/launch/demo_withNOlidar.launch ``` ``` Then, start the program: ``` source devel/setup.bash roslaunch path_planning demo_withNOlidar.launch ``` ## 5.Acknowledgments Thanks for FAST-PLANNER(Zhou, Boyu and Gao, Fei and Wang, Luqi and Liu, Chuhao and Shen, Shaojie. Robust and efficient quadrotor trajectory generation for fast autonomous flight), [FAST-PLANNER](https://github.com/HKUST-Aerial-Robotics/Fast-Planner.git).