Skip to content

MatthewWood/roomba-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an IntelliJ project and can be run within the IDE by running the main function in YotiApplication.java

To run without an IDE:
mvn package && java -jar target/yoti-0.0.1-SNAPSHOT.jar

Note: Data stored in MongoDB; Mongo will need to be running on the local machine.
Mongo instructions:
    Download, install, and run using the resources at https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/
    Create db called "yoti". Simply type "use yoti" in the Mongo cli
    Requests are saved to roombaSimulateRequest collection
    Responses are saved to roombaSimulateResponse collection

The application exposes 1 endpoint for the solution. Run the following curl to access it:
    curl -X POST -H "Content-Type: application/json" -d '{"roomSize":[5, 5],"coords":[1, 2],"patches":[[1, 0],[2, 2],[2, 3]],"instructions":"NNESEESWNWW"}' localhost:8080/simulation
The input data in the curl can be substituted out for different test cases.

Developed and tested on Mac OS

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors