Skip to content

Commit

Permalink
updated json export and removed centerline in .lyt
Browse files Browse the repository at this point in the history
  • Loading branch information
mertyaylacigit authored Jun 6, 2024
1 parent 16334f6 commit 83afed2
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions drawing_to_fsd_layout/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@ def export_json_string(edges_left: FloatArrayNx2, edges_right: FloatArrayNx2, ce
+ ["yellow"] * (len(edges_right) - 1)
)
obj = {
"cones":{
"x": cones_x,
"y": cones_y,
"color": cones_color,
},
"centerline": {
"x": centerline_x,
"y": centerline_y
}
"x": cones_x,
"y": cones_y,
"color": cones_color,
"centerline_x": centerline_x,
"centerline_y": centerline_y
}

return json.dumps(obj)
Expand Down Expand Up @@ -256,7 +252,6 @@ def cones_to_lyt(
(cones_left[0], cones_right[0])
)

cones_per_type.append(np.array(centerline))

bytes_to_write = _traces_to_lyt_bytes(cones_per_type, offset)
return bytes_to_write

0 comments on commit 83afed2

Please sign in to comment.