Lidar Data Extraction and Image Processing with ROS
I've set up a pretty simple obstacle avoidance algorithm here. Here, the drone moves in AUTO mode until it comes within 5 meters of the obstacle and performs normal waypoint tasks. If it comes within 5 meters of the obstacle, it changes its mode to GUIDED and increases its altitude.
Here, I set up a simple precision landing algorithm. If the drone sees the landing strip while performing its waypoint missions in AUTO mode, it switches the mode to GUIDED mode. Then it activates the precision landing functions and makes the landing. Here, the drone primarily focuses on the red zone. Once it aligns and gets close enough, it stops looking for the red area and focuses on the blue area, making a much more precise landing. When it comes close to 30 cm, it puts itself in land mode and lands successfully.