In this thesis, we present the simulation of an autonomous mobile robot with a differential drive in a robot simulator. The focus is on navigating the robot in line following. The process of building the model in the simulator is shown on the example of the educational robot LakosBot. The purpose of this robot model is the development of the robot's control programmes. For this purpose, a simulator plug-in was developed, which allows for a transference of code between the robot and the simulator. The model is experimentally validated and demonstrated on the example of line following.