Skip to content

FossilizedCarlos/NXTLineSim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

NXT Robot utilizing collision and light sensor to detect obstacles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages