- 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
/dynamics/
请求参数
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
动力学描述
bearing_num
number
必需
param
object
动力学模型属性参数
center_of_mass
string
必需
clutch_strength
number
10
damping_rate_full_throttle
number
0
damping_rate_zero_throttle_clutch_disengaged
number
0.35
damping_rate_zero_throttle_clutch_engaged
number
2
drag_coefficient
number
0.25
final_ratio
number
4
forward_gears
array [object {3}]
必需
gear_switch_time
number
0.5
mass
number
1000
max_rpm
number
1000
moi
number
1
steering_curve
array [object {2}]
必需
torque_curve
array [object {2}]
必需
use_gear_autobox
boolean
true
use_sweep_wheel_collision
boolean
true
wheels
object
必需
type
string
必需
示例
{
"name": "dynamic_20240819_-EZaY",
"name_en": "dynamic_20240819_-EZaY",
"desc": "这里是备注信息",
"desc_en": "这里是备注信息",
"type": "physX",
"bearing_num": 2,
"sim_file": "",
"param": {
"center_of_mass": {
"x": 0,
"y": 0,
"z": 0
},
"mass": 10000,
"drag_coefficient": 0.25,
"use_sweep_wheel_collision": true,
"max_rpm": 6000,
"moi": 1,
"torque_curve": [
{
"x": 0,
"y": 400
},
{
"x": 600,
"y": 1300
}
],
"use_gear_autobox": true,
"gear_switch_time": 0.5,
"clutch_strength": 10,
"final_ratio": 4,
"damping_rate_full_throttle": 0.15,
"damping_rate_zero_throttle_clutch_engaged": 2,
"damping_rate_zero_throttle_clutch_disengaged": 0.35,
"reverse_gear_ratio": -4,
"neutral_gear_up_ratio": 0.1,
"forward_gears": [
{
"ratio": 1,
"down_ratio": 0.19,
"up_ratio": 0.38
}
],
"steering_curve": [
{
"x": 0,
"y": 100
},
{
"x": 120,
"y": 70
}
],
"wheels": [
{
"tire_friction": 3.5,
"damping_rate": 0.25,
"max_steer_angle": 70,
"radius": 30,
"width": 24,
"mass": 20,
"max_brake_torque": 1500,
"max_handbrake_torque": 3000,
"long_stiff_value": 0,
"lat_stiff_value": 0,
"lat_stiff_max_load": 0,
"static_camber_angle": 0,
"max_stretch_camber_angle": 0,
"max_compression_camber_angle": 0,
"suspension_force_offset": 0,
"suspension_max_raise": 8,
"suspension_max_drop": 8,
"suspension_natural_frequency": 9,
"suspension_damping_ratio": 1,
"sweep_type": "SimpleAndComplex"
},
{
"tire_friction": 3.5,
"damping_rate": 0.25,
"max_steer_angle": 70,
"radius": 30,
"width": 24,
"mass": 20,
"max_brake_torque": 1500,
"max_handbrake_torque": 3000,
"long_stiff_value": 0,
"lat_stiff_value": 0,
"lat_stiff_max_load": 0,
"static_camber_angle": 0,
"max_stretch_camber_angle": 0,
"max_compression_camber_angle": 0,
"suspension_force_offset": 0,
"suspension_max_raise": 8,
"suspension_max_drop": 8,
"suspension_natural_frequency": 9,
"suspension_damping_ratio": 1,
"sweep_type": "SimpleAndComplex"
},
{
"tire_friction": 3.5,
"damping_rate": 0.25,
"max_steer_angle": 70,
"radius": 30,
"width": 24,
"mass": 20,
"max_brake_torque": 1500,
"max_handbrake_torque": 3000,
"long_stiff_value": 0,
"lat_stiff_value": 0,
"lat_stiff_max_load": 0,
"static_camber_angle": 0,
"max_stretch_camber_angle": 0,
"max_compression_camber_angle": 0,
"suspension_force_offset": 0,
"suspension_max_raise": 8,
"suspension_max_drop": 8,
"suspension_natural_frequency": 9,
"suspension_damping_ratio": 1,
"sweep_type": "SimpleAndComplex"
},
{
"tire_friction": 3.5,
"damping_rate": 0.25,
"max_steer_angle": 70,
"radius": 30,
"width": 24,
"mass": 20,
"max_brake_torque": 1500,
"max_handbrake_torque": 3000,
"long_stiff_value": 0,
"lat_stiff_value": 0,
"lat_stiff_max_load": 0,
"static_camber_angle": 0,
"max_stretch_camber_angle": 0,
"max_compression_camber_angle": 0,
"suspension_force_offset": 0,
"suspension_max_raise": 8,
"suspension_max_drop": 8,
"suspension_natural_frequency": 9,
"suspension_damping_ratio": 1,
"sweep_type": "SimpleAndComplex"
}
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/dynamics/' \
--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": "dynamic_20240819_-EZaY",
"name_en": "dynamic_20240819_-EZaY",
"desc": "这里是备注信息",
"desc_en": "这里是备注信息",
"type": "physX",
"bearing_num": 2,
"sim_file": "",
"param": {
"center_of_mass": {
"x": 0,
"y": 0,
"z": 0
},
"mass": 10000,
"drag_coefficient": 0.25,
"use_sweep_wheel_collision": true,
"max_rpm": 6000,
"moi": 1,
"torque_curve": [
{
"x": 0,
"y": 400
},
{
"x": 600,
"y": 1300
}
],
"use_gear_autobox": true,
"gear_switch_time": 0.5,
"clutch_strength": 10,
"final_ratio": 4,
"damping_rate_full_throttle": 0.15,
"damping_rate_zero_throttle_clutch_engaged": 2,
"damping_rate_zero_throttle_clutch_disengaged": 0.35,
"reverse_gear_ratio": -4,
"neutral_gear_up_ratio": 0.1,
"forward_gears": [
{
"ratio": 1,
"down_ratio": 0.19,
"up_ratio": 0.38
}
],
"steering_curve": [
{
"x": 0,
"y": 100
},
{
"x": 120,
"y": 70
}
],
"wheels": [
{
"tire_friction": 3.5,
"damping_rate": 0.25,
"max_steer_angle": 70,
"radius": 30,
"width": 24,
"mass": 20,
"max_brake_torque": 1500,
"max_handbrake_torque": 3000,
"long_stiff_value": 0,
"lat_stiff_value": 0,
"lat_stiff_max_load": 0,
"static_camber_angle": 0,
"max_stretch_camber_angle": 0,
"max_compression_camber_angle": 0,
"suspension_force_offset": 0,
"suspension_max_raise": 8,
"suspension_max_drop": 8,
"suspension_natural_frequency": 9,
"suspension_damping_ratio": 1,
"sweep_type": "SimpleAndComplex"
},
{
"tire_friction": 3.5,
"damping_rate": 0.25,
"max_steer_angle": 70,
"radius": 30,
"width": 24,
"mass": 20,
"max_brake_torque": 1500,
"max_handbrake_torque": 3000,
"long_stiff_value": 0,
"lat_stiff_value": 0,
"lat_stiff_max_load": 0,
"static_camber_angle": 0,
"max_stretch_camber_angle": 0,
"max_compression_camber_angle": 0,
"suspension_force_offset": 0,
"suspension_max_raise": 8,
"suspension_max_drop": 8,
"suspension_natural_frequency": 9,
"suspension_damping_ratio": 1,
"sweep_type": "SimpleAndComplex"
},
{
"tire_friction": 3.5,
"damping_rate": 0.25,
"max_steer_angle": 70,
"radius": 30,
"width": 24,
"mass": 20,
"max_brake_torque": 1500,
"max_handbrake_torque": 3000,
"long_stiff_value": 0,
"lat_stiff_value": 0,
"lat_stiff_max_load": 0,
"static_camber_angle": 0,
"max_stretch_camber_angle": 0,
"max_compression_camber_angle": 0,
"suspension_force_offset": 0,
"suspension_max_raise": 8,
"suspension_max_drop": 8,
"suspension_natural_frequency": 9,
"suspension_damping_ratio": 1,
"sweep_type": "SimpleAndComplex"
},
{
"tire_friction": 3.5,
"damping_rate": 0.25,
"max_steer_angle": 70,
"radius": 30,
"width": 24,
"mass": 20,
"max_brake_torque": 1500,
"max_handbrake_torque": 3000,
"long_stiff_value": 0,
"lat_stiff_value": 0,
"lat_stiff_max_load": 0,
"static_camber_angle": 0,
"max_stretch_camber_angle": 0,
"max_compression_camber_angle": 0,
"suspension_force_offset": 0,
"suspension_max_raise": 8,
"suspension_max_drop": 8,
"suspension_natural_frequency": 9,
"suspension_damping_ratio": 1,
"sweep_type": "SimpleAndComplex"
}
]
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
响应状态码
message
string
提示信息
result
object
必需
示例
{
"code": 200,
"result": {
"param": {
"torque_curve": [
{
"x": 0,
"y": 400
},
{
"x": 600,
"y": 1300
}
],
"steering_curve": [
{
"x": 0,
"y": 1
},
{
"x": 120,
"y": 0.7
}
],
"forward_gears": [
{
"ratio": 1,
"down_ratio": 1,
"up_ratio": 1
}
],
"max_rpm": 10000,
"moi": 1,
"mass": 10000,
"damping_rate_full_throttle": 0,
"damping_rate_zero_throttle_clutch_engaged": 2,
"damping_rate_zero_throttle_clutch_disengaged": 0.35,
"use_gear_autobox": true,
"gear_switch_time": 0.5,
"clutch_strength": 10,
"center_of_mass": "0.0,0.0,0.0",
"drag_coefficient": 0.25,
"use_sweep_wheel_collision": true,
"final_ratio": 4,
"wheels": {
"front_left_wheel": {
"position": {
"x": 0,
"y": 0,
"z": 0
},
"tire_friction": "2.0",
"damping_rate": "0.25",
"max_steer_angle": "70.0",
"radius": "30.0",
"max_brake_torque": "1500.0",
"max_handbrake_torque": "3000.0",
"long_stiff_value": "1000.0",
"lat_stiff_max_load": "2.0",
"lat_stiff_value": "17.0"
},
"front_right_wheel": {
"position": {
"x": 0,
"y": 0,
"z": 0
},
"tire_friction": "2.0",
"damping_rate": "0.25",
"max_steer_angle": "70.0",
"radius": "30.0",
"max_brake_torque": "1500.0",
"max_handbrake_torque": "3000.0",
"long_stiff_value": "1000.0",
"lat_stiff_max_load": "2.0",
"lat_stiff_value": "17.0"
},
"rear_left_wheel": {
"position": {
"x": 0,
"y": 0,
"z": 0
},
"tire_friction": "2.0",
"damping_rate": "0.25",
"max_steer_angle": "70.0",
"radius": "30.0",
"max_brake_torque": "1500.0",
"max_handbrake_torque": "3000.0",
"long_stiff_value": "1000.0",
"lat_stiff_max_load": "2.0",
"lat_stiff_value": "17.0"
},
"rear_right_wheel": {
"position": {
"x": 0,
"y": 0,
"z": 0
},
"tire_friction": "2.0",
"damping_rate": "0.25",
"max_steer_angle": "70.0",
"radius": "30.0",
"max_brake_torque": "1500.0",
"max_handbrake_torque": "3000.0",
"long_stiff_value": "1000.0",
"lat_stiff_max_load": "2.0",
"lat_stiff_value": "17.0"
}
}
},
"modified_at": "2024-04-30T16:13:28.664941+08:00",
"created_at": "2024-04-30T16:13:28.664899+08:00",
"id": 1416,
"sim_file": "",
"company_id": 1,
"bearing_num": 2,
"desc_en": "",
"invalid": 0,
"user_id": 1,
"name_en": "dynamic_000",
"system_data": false,
"desc": "",
"name": "dynamic_000",
"type": "physX"
},
"message": ""
}
修改于 2024-08-19 03:40:10