Turtlebot3 Frontier Explorer and Shape Tracing
March 18, 2021
Overview
During the Winter quarter, I learned a lot about turtlebot3, especially when it comes to manipulating it on a map. For this project, I wrote some ROS software that would allow the turtlebot3 to autonomously explore a simulated world in gazebo and visualize what it sees using SLAM in rviz. Once it is done exploring the map, I then uploaded an image of a convex shape into the program and have the robot trace the edge of the shape onto the map.
More technical details of the project can be found in this Github repository.
The idea behind the frontier explorer was inspired by this paper. In order to determine where to drive the turtlebot3 to, I had to find the frontier where the unknown and the unoccupied cells on the map meet and drive the turtlebot to those locations until I was fully satisfied with the developed map.
Here are some videos of the results I got
turtlebot3 autonomously exploring turtlebot3 world
turtlebot3 autonomously exploring turtlebot3 house
I used the map_server node to save the map into a file, and then load it back up in rviz.
The idea being the shape tracing was that I wanted to see if it was possible to give the turtlebot3 an image and have it draw the outline of that image on the map. This could be applicable to situations where you want to trace large outlines of stuff onto the map and want to automate the process. Some of the results of that are shown below.
turtlebot3 tracing a square in the turtlebot3 house map
turtlebot3 tracing a pentagon in the turtlebot3 house map
turtlebot3 tracing an octagon in the turtlebot3 house map
Your results may vary depending on what map you used and what shape you decided to trace with.