Skip to content

tokyorails/rrroomba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rrroomba!

Main files

/lib/roomba.rb
/lib/roomba_simulation.rb
/lib/roomba_serial_simulation.rb

Quickstart

Migrate the db

$ rake db:migrate

Make sure that the tests pass

$ rake test

Jump in console and give the basic simulation a shot.

$ rails c
:001 > earth = World.new
:002 > roo = RoombaSimulation.new
:003 > earth.spawn(roo)
:004 > roo.move(100)
:005 > roo.move(0,120)
:006 > roo.move(1000)

You should end up with a bump reading at N:90, X:126 Y:89

X:126 is the center point of Simulated Roomba. Add the radius of Roomba + the radius of the obstacle and it should be the same as the distance between X:126 and the default simulated obstacle.

Or jump into the rails app and play around.

rails s

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published