Commit 1e66c8d7 authored by hengwen's avatar hengwen

Add definition for vehicle rotation, velocity, acceleration and street sign.

parent 1a2d5e25
......@@ -120,11 +120,11 @@ paths:
description: "success"
500:
description: "server error"
/simulation/{id}/status:
/simulation/{id}/finished:
get:
tags:
- "simulation"
summary: "Get simulation status"
summary: "Findout if a simulation task is finished or not"
parameters:
- name: "id"
in: "path"
......@@ -138,8 +138,10 @@ paths:
200:
description: "success"
schema:
type: string
enum: [READY, RUNNING, FINISHED, FAILED]
type: "object"
properties:
result:
type: "boolean"
/simulation/{id}/map-data/{sectorIdx}:
get:
tags:
......@@ -276,6 +278,36 @@ definitions:
numSectors:
type: "integer"
format: "int64"
StreetSign:
type: "object"
properties:
id:
type: "string"
enum: [EMPTY_SIGN, TRAFFIC_LIGHT, TRAFFIC_LIGHT_YELLOW, TRAFFIC_LIGHT_RED, TRAFFIC_LIGHT_RED_YELLOW, TRAFFIC_LIGHT_GREEN, EGG_SIGN, INTERSECTION_SIGN, PRIORITY_SIGN, STOP_SIGN]
one:
type: "boolean"
two:
type: "boolean"
type:
type: "string"
x1:
type: "number"
format: "double"
x2:
type: "number"
format: "double"
y1:
type: "number"
format: "double"
y2:
type: "number"
format: "double"
z1:
type: "number"
format: "double"
z2:
type: "number"
format: "double"
Node:
type: "object"
properties:
......@@ -288,6 +320,8 @@ definitions:
type: "number"
altitude:
type: "number"
streetSign:
$ref: "#/definitions/StreetSign"
Street:
type: "object"
properties:
......@@ -400,6 +434,20 @@ definitions:
type: "number"
posZ:
type: "number"
velocity:
type: "array"
items:
type: "number"
acceleration:
type: "array"
items:
type: "number"
rotation:
type: "array"
items:
type: "array"
items:
type: "number"
steering:
type: "number"
engine:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment