Code Monkey home page Code Monkey logo

self-driving-mowers's Introduction

Self Driving Mowers

Application that helps in controlling new mowers that are able to cut the grass and to inspect the terrain with their cameras to identify problems in the green areas.

Installation and Run

  • Install python

      sudo apt update
    
      sudo apt install python3.9.7
    
      python --version
    
  • Clone the repository

      git clone https://github.com/MiguelBarriosAl/self-driving-mowers.git
    
  • Install virtual enviroment:

      sudo apt-get install python3-pip
    
      sudo pip3 install virtualenv
    
      virtualenv venv
    
      source venv/bin/activate
    
  • Install requirements

      pip install -r requirements.txt
    
  • Local Running (no production environment)

    cd .\src uvicorn main:app --reload

Services

HealthCheck

curl --location --request GET 'http://127.0.0.1:8000/'

/Mower

For the following requests it is mandatory to include in the first request the field "top". Subsequently, for those that are in the same plane, it is not necessary to include it.

Request

curl --location --request POST 'http://127.0.0.1:8000/mower/' \
--header 'Content-Type: application/json' \
--data-raw '{"top": [5,5],
"position": [1,2,"N"],
"instructions": "LMLMLMLMM"
}

Output

[1, 3,"N"]

Request

curl --location --request POST 'http://127.0.0.1:8000/mower/' \
--header 'Content-Type: application/json' \
--data-raw '{
"position": [3,3,"E"],
"instructions": "MMRMMRMRRM"
}'

Output

[5,1,"E"]

self-driving-mowers's People

Contributors

miguelbarriosal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.