Skip to content

A project to use different hardware control AWS deepracer

Notifications You must be signed in to change notification settings

lshw54/deepracer_api

Repository files navigation

Deepracer_api Rewirte

This project base on https://github.com/thu2004/deepracer-vehicle-api rewrite to support the new version Deepracer Console Software version 1.0.606.0

Directory Tree

deepracer_api/
├── config.yml
├── core
│   ├── deepracer_cam.py
│   ├── __init__.py
│   └── logger.py
├── docker
│   ├── cam
│   │   └── Dockerfile
│   ├── g29
│   │   └── Dockerfile
│   └── ps4
│       └── Dockerfile
├── docker-compose.g29.yml
├── docker-compose.ps4.yml
├── g29_mode.py
├── logs
├── ps4Controller_mode.py
├── README.md
├── requirements.txt
├── setup.sh
├── show_cam.py
├── start-g29.sh
├── start-ps4.sh
└── test
    ├── os_test.py
    ├── ps4Controller_test.py
    └── test_g29.py

Local Setup

If You don't need to build the docker then need config the virtual environment for run this projcet.

$Powershell
> git clone https://github.com/lshw54/deepracer_api.git
> cd deepracer_api
> python -m venv venv
> .\venv\Scripts\activate
> pip install -r requirements.txt
$linux
> git clone https://github.com/lshw54/deepracer_api.git
> cd deepracer_api
> python3 -m venv venv
> . venv/bin/activate
> pip install -r requirements.txt

When you finish you just need to config the config.yml to fill your deepracer ip and password.

  • replace the code
client = Client(password=os.getenv("password"), ip=os.getenv("hostIp"))
    dir_path = os.path.dirname(os.path.realpath(__file__))

    with open(os.path.join(dir_path, "config.yaml"), "r") as ymlfile:
        cfg = yaml.load(ymlfile, Loader=yaml.FullLoader)
    
    client = Client(cfg["password"], cfg["ip"])

Docker setup

  • run the setup.sh file to setup your IP and password it will generate a hostname_passord file to save your IP and password.

  • choose which mode you need then run to start sh file

Other

  • Testing on Windows, Ubuntu, MacOS (with USB port)
  • G29 Mode is not supporting on Linux

About

A project to use different hardware control AWS deepracer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published