Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.67 KB

apis.md

File metadata and controls

27 lines (18 loc) · 1.67 KB

Summary of AWS DeepRacer Manual Mode APIs

The AWS DeepRacer webserver_pkg module creates the webserver_publisher_node which launches a Flask application as a background thread and creates service clients and subscribers for all the services and topics that are required by the APIs called from the DeepRacer vehicle console.

List of Exposed APIs

Vehicle Control API

Code is here: https://github.com/aws-deepracer/aws-deepracer-webserver-pkg/blob/main/webserver_pkg/webserver_pkg/vehicle_control.py

HTTP Methods API Data Description
GET /api/drive_mode {"drive_mode": "manual|auto"} Drive car in AI or manual mode. Looks for 'manual' otherwise AI
PUT|POST /api/manual_drive {"angle": steering_angle, "throttle": throttle, "max_speed": max_speed} Used to steer the car. angle and throttle are both float values between -1.0 and 1.0. max_speed is float value ranging from 0.0 to 1.0
PUT /api/max_nav_throttle {"throttle": throttle_percent} Throttle mutiplier from -1 to 1
PUT /api/start_stop {"start_stop": "start|stop"} Start or stop the car

Device Info API

Code is here: https://github.com/aws-deepracer/aws-deepracer-webserver-pkg/blob/main/webserver_pkg/webserver_pkg/device_info_api.py

HTTP Methods API Data Description
GET /api/get_device_info Get the current hardware and software versions
GET /api/get_battery_level What is battery level from 1-10
GET /api/get_sensor_status Status of cameras and lidar