Skip to content

atlasmaxima/robot_movement

Repository files navigation

Robot Movement

Dev

Move and track robots

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/atlasmaxima/robot_movement.git
    
  2. Install dependencies:

    npm install
    

Usage

Build and Develop Application

  1. Build the project:

    npm run build
    
  2. Start the application:

    For Node version 19 and below:

    npm start -- -h
    

    Example cli command:

    npm start -- -t warehouse -o SW -s NESW
    

    For Node version 20 and above:

    npm run start:dist
    

    Example cli command:

    npm run start:dist -- -t warehouse -o SW -s NESW
    
  3. Run Test:

    npm run test
    

Run the Application [Lambda Function with Docker image]

  1. Pull Docker image:

    docker pull ghcr.io/atlasmaxima/robot_movement:main
    
  2. Run Docker container:

    docker run --platform linux/amd64 -p 9000:8080 ghcr.io/atlasmaxima/robot_movement:main
    
  3. Send a request:

    Linux/Ubuntu Command:

    curl "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'
    

    Request Body:

        {
            "robotType": "warehouse",
            "moveSequence": "NESW",
            "gridOrigin": "SW",
            "gridSize": 10,
            "startX": 0,
            "startY": 0
        }
    

    An Full Example Request:

    curl "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"robotType":"warehouse","moveSequence":"NESW","gridOrigin":"SW","gridSize":10,"startX":0,"startY":0}'
    

    Powershell Command:

    Invoke-RestMethod -Uri "http://localhost:9000/2015-03-31/functions/function/invocations" -Method Post -Body '{}'
    

About

Move and track robots

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages