- OASIS SIM(废弃)
- sensors
- dynamics
- cars
- car_models
- jobs
- tasks
- scenarios
- scenario_groups
- scenario_elements
- maps
- test_cases
- scores
- traffic_flows
- controllers
- weathers
- lights
- logs(废弃)
- emails
- users
- evaluates
- file_operator
- trashes(已废弃)
- configs
- licenses
- 查询tokenGET
创建算法控制系统
开发中
POST
/controllers/algorithms
请求参数
Header 参数
Authorization
string
必需
示例值:
bearer {{token}}
Content-Type
string
必需
示例值:
application/json
User-Agent
string
必需
示例值:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Body 参数application/json
name
string
必需
desc
string
必需
type
string
必需
routing
boolean
路径属性
perception
boolean
感知属性
planning
boolean
规划属性
control
boolean
控制属性
versions
array [object {3}]
必需
version
string
必需
node_name
string
必需
active
boolean
必需
system_data
boolean
必需
name_en
string
必需
desc_en
string
必需
示例
{
"name": "controller20240626777",
"desc": "我是备注信息",
"type": "algorithm",
"routing": true,
"perception": true,
"planning": true,
"control": true,
"versions": [
{
"version": "2.0",
"node_name": "node2",
"active": false
},
{
"version": "1.0",
"node_name": "node1",
"active": false
}
],
"system_data": false,
"name_en": "controller20240626777",
"desc_en": "我是备注信息",
"custom_type": "Ros"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/controllers/algorithms' \
--header 'Authorization: bearer {{token}}' \
--header 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "controller20240626777",
"desc": "我是备注信息",
"type": "algorithm",
"routing": true,
"perception": true,
"planning": true,
"control": true,
"versions": [
{
"version": "2.0",
"node_name": "node2",
"active": false
},
{
"version": "1.0",
"node_name": "node1",
"active": false
}
],
"system_data": false,
"name_en": "controller20240626777",
"desc_en": "我是备注信息",
"custom_type": "Ros"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 200,
"result": {
"controller": {
"_partial": false,
"_custom_generated_pk": false,
"name": "controller20240626777",
"desc": "我是备注信息",
"name_en": "controller20240626777",
"desc_en": "我是备注信息",
"type": "algorithm",
"routing": true,
"perception": true,
"planning": true,
"control": true,
"driver_params": null,
"custom_type": "Ros",
"system_data": 0,
"invalid": 0,
"modified_at": "2024-08-22T14:10:56.093123+08:00",
"company_id": 1,
"id": 7,
"user_id": 1,
"created_at": "2024-08-22T14:10:56.093100+08:00"
},
"versions": [
{
"controller_id": 7,
"setup_file_name": null,
"invalid": 0,
"modified_at": "2024-08-22T14:10:56.093924+08:00",
"company_id": 1,
"data_flow_file_name": null,
"config_file_name": null,
"id": 4,
"node_name": "node2",
"version": "2.0",
"user_id": 1,
"created_at": "2024-08-22T14:10:56.093908+08:00"
},
{
"controller_id": 7,
"setup_file_name": null,
"invalid": 0,
"modified_at": "2024-08-22T14:10:56.094293+08:00",
"company_id": 1,
"data_flow_file_name": null,
"config_file_name": null,
"id": 5,
"node_name": "node1",
"version": "1.0",
"user_id": 1,
"created_at": "2024-08-22T14:10:56.094279+08:00"
}
]
},
"message": ""
}
修改于 2024-11-08 06:59:37