Download Thesis
Transcript
Table of contents Abstract..……………………………………………………………………………………………...2 Chapter 1. Introduction.…………………………………………………………………………….3 Chapter 2. LEGO Mindstorms robot controlled by MATLAB – Problem statement.…….4 Chapter 3. 2D simulators for robot programming – State of the art.……………………….7 3.1. Methods…………………………………………………………………………………..7 3.2. Results & discussion……………………………………………………………………8 Chapter 4. A 2D simulator – NXTSim..…………………………………………….……………11 4.1. Approach…………..……………………………………………………………………11 4.2. Sensors, actuators and environment.…..……………………………………………11 4.3. Parsing the code...……………………………………..………………………………13 4.4. User interface…………………………………………..………………………………14 4.5. Testing……….…………………………………………..……………………………..16 4.5.1. Line follower…………………………………………………………………16 4.5.2. Obstacle avoidance…………………………………………………………18 Chapter 5. Conclusion.……………………………………………………………………………19 References...………………………………………………………...………………………………20 Appendix..………………………………………………………………………...…………………21 User Manual…………………………………………………………………………………21 Abstract The role of simulators in robotics research is important because of its efficiency, safety and robustness of new algorithms. Research shows that a simulator for LEGO Mindstorms NXT robots, which accepts MATLAB-code as input, does not exist. We developed a simulator to solve this problem. In this thesis, we contribute a simulator for the LEGO Mindstorms NXT robotic kit that accepts MATLAB-code as input. The main focus is on simplicity and usefulness, because it will be used by students with no experience in programming. 2