Skip to content

SlimBenAmor/line-follower-simulator

Repository files navigation

Line Follower Simulator

This repository provide a simulator for a line follower robot.

Manual Control

The user can control the robot manually using keyboard keys (arrows and space bar keys). For this, he should comment the line that invoke automatic control method (line 161) and uncomment the line that invoke manual control method (line 168).

Automatic Control

The user can set the automatic control mode of the robot by commenting the line that invoke manual control method (line 168) and by uncommenting the line that invoke automatic control method (line 161). Moreover, the user can change the default circuit and control algorithm by using new image (e.g. "circuit_2.png" ) for the background and the circuit to follow and by implementing his own version of "automatic_control" method.

Future Work

We plan to add background simulator mode with no graphical interface in order to allow some reinforcement learning algorithms and libraries (e.g. gym) to interact with our simulator and to learn a control policy for an automatic agent.

About

Simulator of a line follower robot in Python (with Pygame)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages