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
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
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
- 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"])
-
run the
setup.sh
file to setup your IP and password it will generate ahostname_passord
file to save your IP and password. -
choose which mode you need then run to
start
sh file
- Testing on Windows, Ubuntu, MacOS (with USB port)
- G29 Mode is not supporting on Linux