{
"vehicle_color": "53, 57, 147",
"light_state": "NONE",
"type": "vehicle.synkrotron.democar",
"dynamics_id": 1,
"sensors": [
{
"name": "Fisheye Camera H195 200W",
"nick_name": "f",
"sensor_id": 2,
"roll": 0,
"pitch": 0,
"yaw": 0,
"position_x": 1.6,
"position_y": 0,
"position_z": 1,
"type": "sensor.camera.fisheye",
"group_type": "cam",
"init_config": {
"udp_ip": "",
"udp_port": ""
},
"parent_id": "f-2"
},
{
"name": "Fisheye Camera H195 200W",
"nick_name": "f",
"sensor_id": 2,
"roll": 0,
"pitch": 0,
"yaw": 0,
"position_x": 1.6,
"position_y": 0,
"position_z": 1,
"type": "sensor.camera.fisheye",
"group_type": "cam",
"init_config": {
"udp_ip": "",
"udp_port": ""
}
},
{
"name": "Fisheye Camera H195 200W",
"nick_name": "b",
"sensor_id": 2,
"roll": 0,
"pitch": 0,
"yaw": 180,
"position_x": -2.2,
"position_y": 0,
"position_z": 1,
"type": "sensor.camera.fisheye",
"group_type": "cam",
"init_config": {
"udp_ip": "",
"udp_port": ""
},
"parent_id": "b-2"
},
{
"name": "Fisheye Camera H195 200W",
"nick_name": "b",
"sensor_id": 2,
"roll": 0,
"pitch": 0,
"yaw": 180,
"position_x": -2.2,
"position_y": 0,
"position_z": 1,
"type": "sensor.camera.fisheye",
"group_type": "cam",
"init_config": {
"udp_ip": "",
"udp_port": ""
}
},
{
"name": "RGB Camera H90 200W",
"nick_name": "a",
"sensor_id": 3,
"roll": 0,
"pitch": 0,
"yaw": 0,
"position_x": 0,
"position_y": 0,
"position_z": 1.5,
"type": "sensor.camera.rgb",
"group_type": "cam",
"init_config": {
"udp_ip": "",
"udp_port": ""
},
"parent_id": "a-3"
},
{
"name": "RGB Camera H90 200W",
"nick_name": "a",
"sensor_id": 3,
"roll": 0,
"pitch": 0,
"yaw": 0,
"position_x": 0,
"position_y": 0,
"position_z": 1.5,
"type": "sensor.camera.rgb",
"group_type": "cam",
"init_config": {
"udp_ip": "",
"udp_port": ""
}
}
],
"name": "car_2sensor_cop_copy_copy",
"name_en": "car_2sensor_cop_copy_copy",
"desc": "",
"desc_en": ""
}
curl --location --request POST '/cars/' \
--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 '{
"vehicle_color": "53, 57, 147",
"light_state": "NONE",
"type": "vehicle.synkrotron.democar",
"dynamics_id": 1,
"sensors": [
{
"name": "Fisheye Camera H195 200W",
"nick_name": "f",
"sensor_id": 2,
"roll": 0,
"pitch": 0,
"yaw": 0,
"position_x": 1.6,
"position_y": 0,
"position_z": 1,
"type": "sensor.camera.fisheye",
"group_type": "cam",
"init_config": {
"udp_ip": "",
"udp_port": ""
},
"parent_id": "f-2"
},
{
"name": "Fisheye Camera H195 200W",
"nick_name": "f",
"sensor_id": 2,
"roll": 0,
"pitch": 0,
"yaw": 0,
"position_x": 1.6,
"position_y": 0,
"position_z": 1,
"type": "sensor.camera.fisheye",
"group_type": "cam",
"init_config": {
"udp_ip": "",
"udp_port": ""
}
},
{
"name": "Fisheye Camera H195 200W",
"nick_name": "b",
"sensor_id": 2,
"roll": 0,
"pitch": 0,
"yaw": 180,
"position_x": -2.2,
"position_y": 0,
"position_z": 1,
"type": "sensor.camera.fisheye",
"group_type": "cam",
"init_config": {
"udp_ip": "",
"udp_port": ""
},
"parent_id": "b-2"
},
{
"name": "Fisheye Camera H195 200W",
"nick_name": "b",
"sensor_id": 2,
"roll": 0,
"pitch": 0,
"yaw": 180,
"position_x": -2.2,
"position_y": 0,
"position_z": 1,
"type": "sensor.camera.fisheye",
"group_type": "cam",
"init_config": {
"udp_ip": "",
"udp_port": ""
}
},
{
"name": "RGB Camera H90 200W",
"nick_name": "a",
"sensor_id": 3,
"roll": 0,
"pitch": 0,
"yaw": 0,
"position_x": 0,
"position_y": 0,
"position_z": 1.5,
"type": "sensor.camera.rgb",
"group_type": "cam",
"init_config": {
"udp_ip": "",
"udp_port": ""
},
"parent_id": "a-3"
},
{
"name": "RGB Camera H90 200W",
"nick_name": "a",
"sensor_id": 3,
"roll": 0,
"pitch": 0,
"yaw": 0,
"position_x": 0,
"position_y": 0,
"position_z": 1.5,
"type": "sensor.camera.rgb",
"group_type": "cam",
"init_config": {
"udp_ip": "",
"udp_port": ""
}
}
],
"name": "car_2sensor_cop_copy_copy",
"name_en": "car_2sensor_cop_copy_copy",
"desc": "",
"desc_en": ""
}'
{
"code": 200,
"result": {
"_partial": false,
"_custom_generated_pk": false,
"name": "car_2sensor_cop_copy",
"desc": "",
"vehicle_color": "53, 57, 147",
"light_state": "NONE",
"type": "vehicle.synkrotron.democar",
"dynamics_id": 1,
"render_mode": "render",
"name_en": "car_2sensor_cop_copy",
"desc_en": "",
"modified_at": "2024-08-16T10:55:01.632611+08:00",
"user_id": 1,
"company_id": 1,
"invalid": 0,
"system_data": false,
"id": 1659,
"created_at": "2024-08-16T10:55:01.632589+08:00",
"sensors": [
{
"init_config": {
"udp_ip": "",
"udp_port": ""
},
"nick_name": "a",
"company_id": 1,
"roll": 0,
"car_id": 1659,
"position_x": 0,
"modified_at": "2024-08-16T10:55:01.638194+08:00",
"name_en": "RGB Camera H90 200W",
"system_data": false,
"p_id": null,
"pitch": 0,
"position_z": 1.5,
"type": "sensor.camera.rgb",
"sensor_id": 3,
"invalid": 0,
"id": 5954,
"parent_id": 0,
"created_at": "2024-08-16T10:55:01.638176+08:00",
"position_y": 0,
"name": "RGB Camera H90 200W",
"yaw": 0,
"role_name": "a"
},
{
"init_config": {
"udp_ip": "",
"udp_port": ""
},
"nick_name": "b",
"company_id": 1,
"roll": 0,
"car_id": 1659,
"position_x": -2.2,
"modified_at": "2024-08-16T10:55:01.640501+08:00",
"name_en": "Fisheye Camera H195 200W",
"system_data": false,
"p_id": null,
"pitch": 0,
"position_z": 1,
"type": "sensor.camera.fisheye",
"sensor_id": 2,
"invalid": 0,
"id": 5955,
"parent_id": 0,
"created_at": "2024-08-16T10:55:01.640483+08:00",
"position_y": 0,
"name": "Fisheye Camera H195 200W",
"yaw": 180,
"role_name": "b"
},
{
"init_config": {
"udp_ip": "",
"udp_port": ""
},
"nick_name": "f",
"company_id": 1,
"roll": 0,
"car_id": 1659,
"position_x": 1.6,
"modified_at": "2024-08-16T10:55:01.642274+08:00",
"name_en": "Fisheye Camera H195 200W",
"system_data": false,
"p_id": null,
"pitch": 0,
"position_z": 1,
"type": "sensor.camera.fisheye",
"sensor_id": 2,
"invalid": 0,
"id": 5956,
"parent_id": 0,
"created_at": "2024-08-16T10:55:01.642256+08:00",
"position_y": 0,
"name": "Fisheye Camera H195 200W",
"yaw": 0,
"role_name": "f"
}
]
},
"message": ""
}