August 6, 2024
Since I figured out how to perform mapping with one robot yesterday, today I worked on creating a map with both robots.
To run this experiment, I placed one robot 3 inches to the left of the center of the map and the other robot 3 inches to the right. Then, I ran the mapping code for both robots, and they both spun in a circle at the same time. However, the terminal output was extremely laggy, and my cameras weren't picking up each tag. I am guessing this was casued by a combination of the fact that the mapping program, camera, and motors need quite a bit of power to run them, and the fact that both robots were connected to the same WiFi.
Instead, I ran each robot individually, but I included the AprilTag of the other robot in the environment so that the robot could still see the other robot's position in the enviornment. I ran this once for each robot, and then I created an algorithm to merge the maps together by taking the average position of each vertex.
In the end, the error of the merged map was greater than the error of the single robot's map, and even plotting the graph, the merged graph looked worse. I am guessing this is due to if one robot's data was inaccurate, the merging algorithm's output would also be quite inaccurate.
Below is an image of the merged collaborative map:

Comments
Post a Comment