TriHuynh00 / AC3R-Demo

Automatic Crash Constructor from Crash Report (A3CR) Demo of constructing simulations from crash reports
11 stars 6 forks source link

PR #5: Implementation for issue #14 #16

Closed harveyvn closed 3 years ago

harveyvn commented 3 years ago
{
    "road_type_1": "roadway",
    "road_shape_1": "I",
    "road_node_list_1": [
        [240.0, 240.0, 0, 12.0],
        [180.0, 180.0, 0, 12.0],
        [120.0, 120.0, 0, 12.0],
        [60.0, 60.0, 0, 12.0],
        [0, 0, 0, 12.0],
        [-60.0, -60.0, 0, 12.0],
        [-120.0, -120.0, 0, 12.0],
        [-180.0, -180.0, 0, 12.0],
        [-240.0, -240.0, 0, 12.0]
    ],
    "road_type_2": "roadway",
    "road_shape_2": "I",
    "road_node_list_2": [
        [240.0, 0.0, 0, 12.0],
        [180.0, 0.0, 0, 12.0],
        [120.0, 0.0, 0, 12.0],
        [60.0, 0.0, 0, 12.0],
        [0, 0, 0, 12.0]
    ],
    "road_type_3": "roadway",
    "road_shape_3": "I",
    "road_node_list_3": [
        [0.0, 240.0, 0, 8.0],
        [0.0, 180.0, 0, 8.0],
        [0.0, 120.0, 0, 8.0],
        [0.0, 60.0, 0, 8.0],
        [0, 0, 0, 8.0],
        [0.0, -60.0, 0, 8.0],
        [0.0, -120.0, 0, 8.0],
        [0.0, -180.0, 0, 8.0],
        [0.0, -240.0, 0, 8.0]
    ],
    "v2_points": [
        [89.845517, 87.845517, 0],
        [20.88, 18.88, 0],
        [-2.0, 2.0, 0]
    ],
    "v2_velocities": [20, 20],
    "v2_rot_degree": [
        [-0.00593952, -0.02359371, 0.42191736, 0.90630778], // Optional tuple (x, y, z, w) specifying the rotation as quaternion for function add_vehicle()
        [49.93972267] // Rotation degree required
    ],
    "v1_points": [
        [-2.0, 86.84551724137933, 0],
        [-2.0, 17.880000000000006, 0],
        [-2.0, 2.0, 0]
    ],
    "v1_velocities": [20, 20],
    "v1_rot_degree": [
        [3.45267143e-04, 0.00000000e+00, 0.00000000e+00, 9.99999940e-01],
        [0]
    ],
    "crash_point": [-2.0, 2.0, 0]
}