gerlaxrex / RobotSimulation

Little simulation for Obstacle Avoidance algorithm for a simple mobile robot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RobotSimulation

Little simulation for Obstacle Avoidance algorithm for a simple mobile robot. The P5.js framework has been used in order to develop this little project. This will be modified very soon in order to make the algorithm better and reproduce more real-like results (also for the representation of sensors detections).

Settings

Inside the simulation various settings have been put in order to control the state of the simulation:

  • PositionX: the position of the robot in the horizontal direction.
  • PositionY: the position of the robot in the vertical direction (top to bottom!!!).
  • Angle: The initial angle of the robot in degrees (0° points from the top to bottom).
  • ___Sensor: It regulates the treshold of the distance sensor.
  • OA Type: It simply selects the type of Obstacle Avoidance algorithm we want to simulate, the static one or the dynamic one.

How to run?

Simply open the index.html file with your browser :)

What to add?

  • Add a functionality in order to add obstacles runtime
  • Add moving obstacles
  • Add camera sensor

About

Little simulation for Obstacle Avoidance algorithm for a simple mobile robot


Languages

Language:JavaScript 74.7%Language:HTML 25.3%