Skip to content

Latest commit

 

History

History
executable file
·
43 lines (31 loc) · 1.69 KB

README.md

File metadata and controls

executable file
·
43 lines (31 loc) · 1.69 KB

NXT Simulations

This program simulates what a LEGO MINDSTORMS NXT robot would do when following a line or encounter objects, while utilizing the touch sensor and light sensor.

NXTLineSimOrig

ScreenShot

This is the original implementation of the program. The robot follows the circular path line, and reverses direction upon encountering the obstacle on the path.

NXTLineSim

ScreenShot

This program simulates a line following robot that also avoids obstacles. This is simple alteration to the original implementation, and involves the robot using color sensors to remain inside of a circular road while avoiding obstacles.

NXTRandomSim

ScreenShot

This updated iteration simulates a robot that avoids obstacles after first encountering them. The program will generate the obstacle images utilizing the ObstacleFactory class, and store them in the "src/sprites" folder. This code will randomly place these obstacles in the 500px by 500px grid, and keep them at least 50px away from each other. The obstacles receive a yellow field once the location is discovered. Once all the obstacles have been encountered, and locations tagged; the goal is for a genetic algorithm implementation to find the shortest path between all the obstacles without any specific starting or ending points.

###Things left to add:

  • A better way of centering the field on discovered obstacles.
  • LinkedList sorting
  • Genetic algorithm
  • Revisiting of all obstacles
  • Displaying a grid with "generated" obstacles
  • Documenting the code