This repository has been archived by the owner on Nov 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial doc describing websocket JSON object send back from the simul…
…ator server
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Websocket Data | ||
|
||
This document describes the JSON object send back from the simulator command server. | ||
|
||
Fields: | ||
|
||
* ptsx (Array<float>) - The global x positions of the waypoints. | ||
* ptsy (Array<float>) - The global y positions of the waypoints. This corresponds to the z coordinate in Unity | ||
since y is the up-down direction. | ||
* psi (float) - The orientation of the vehicle in **radians**. | ||
* psi_converted (float) - The orientation of the vehicle in **radians** converted from the Unity format to the standard format expected in most mathemetical functions (more details below). | ||
* x (float) - The global x position of the vehicle. | ||
* y (float) - The global y position of the vehicle. | ||
* steering_angle (float) - The current steering angle in **radians**. | ||
* throttle (float) - The current throttle value [-1, 1]. | ||
* speed (float) - The current velocity in **mph**. | ||
|
||
|
||
### Unity Degree Conversion | ||
|
||
The degree representation does not correspond to the following representation below, standard in most mathematical functions. `psi_converted` is the mapping to the below orientation representation. | ||
|
||
``` | ||
// 90 | ||
// | ||
// 180 0 | ||
// | ||
// 270 | ||
``` |