Lab 11:
Localization
While working on this lab, I was having issues with my robot’s motors (they were turning at very inconsistent speeds, and sometimes one set of wheels would stop turning entirely). Although I was able to temporarily fix this, when I went to collect my data again, I realized that the wire connecting one of the motor drivers to the motor had completely come out (not on the motor driver side but on the motor side). This essentially meant that I had no control over one set of wheels, so in order to perform orientation control, I would need to somehow restrict those set of wheels from turning and only let the other set of wheels turn (thus the robot would rotate about the axis of the non-spinning set of wheels). Although this could have been solved mechanically (my jamming the other wheels), due to time constraints as I was leaving Ithaca, I decided, for the purpose of this lab, to use my Lab 9 data as my mapping data was not working as planned. Overall, the issues with my motor meant that I didn’t necessarily get the results that I wanted, but I’m super thankful for Larry for hosting OH super last minute so that I could spend some time to at least try getting a map + Jonathan for letting me use the room!!
Confirming that the Localization Worked in Sim
First step for this lab was to confirm that localization would work for in the simulation. I ran the localization scripts provided to us and saw a fairly desirable map of the Bayes Filter running on the simulated robot. Results are pictured below:
Localization on Robot
As mentioned above, I was having a lot of trouble getting my robot to map correctly because one of the motors was not working, so I instead defaulted to using my Lab 9 data to see if the robot worked instead.
Here are the results for each run:
Point 1:
Point 2:
Point 3:
Point 4:
Although points 1 and 2 seem to have localized fairly well (not entirely well), points 3 and 4 seem to be really poorly done. I think this is because when I was collecting my Lab 9 data for these two points, the robot moved a little linearly while it was turning which might have affected some of the ToF data that it was collecting. I would have liked to redo the localization but because my robot was broken, I was unfortunately unable to do so.
Conclusions
This was a cool lab that let me tie in my work for mapping and implementing the Bayes Filter in the simulation and confirming that it would work on my actual robot. Although I wasn’t actually able to test this out in the lab testing set up, it was still cool to see how this worked in the simulation using the lab data!