33
33
34
34
namespace cloe {
35
35
36
- // clang-format off
37
- ENUM_SERIALIZATION (LaneBoundary::Type, ({
38
- {LaneBoundary::Type::Unknown, " unknown" },
39
- {LaneBoundary::Type::Solid, " solid" },
40
- {LaneBoundary::Type::Dashed, " dashed" },
41
- {LaneBoundary::Type::Grass, " grass" },
42
- {LaneBoundary::Type::Curb, " curb" },
43
- }))
44
-
45
- ENUM_SERIALIZATION (LaneBoundary::Color, ({
46
- {LaneBoundary::Color::Unknown, " unknown" },
47
- {LaneBoundary::Color::White, " white" },
48
- {LaneBoundary::Color::Yellow, " yellow" },
49
- {LaneBoundary::Color::Red, " red" },
50
- {LaneBoundary::Color::Green, " green" },
51
- {LaneBoundary::Color::Blue, " blue" },
52
- }))
53
- // clang-format on
54
-
55
36
void LaneBoundary::to_json (Json& j) const {
56
37
j = Json{
57
38
{" id" , id},
@@ -63,6 +44,7 @@ void LaneBoundary::to_json(Json& j) const {
63
44
{" curv_hor_start" , curv_hor_start},
64
45
{" curv_hor_change" , curv_hor_change},
65
46
{" dx_end" , dx_end},
47
+ {" exist_prob" , exist_prob},
66
48
{" type" , type},
67
49
{" color" , color},
68
50
{" points" , points},
@@ -71,17 +53,20 @@ void LaneBoundary::to_json(Json& j) const {
71
53
72
54
Schema LaneBoundary::schema_impl () {
73
55
return schema::Struct{
56
+ // clang-format off
74
57
{" id" , Schema (&id, " unique identifier in scene graph" )},
75
58
{" prev_id" , Schema (&prev_id, " previous identifier" )},
76
59
{" next_id" , Schema (&next_id, " next identifier" )},
77
- {" dx_start" , Schema (&dx_start, " " )},
78
- {" dy_start" , Schema (&dy_start, " " )},
79
- {" heading_start" , Schema (&heading_start, " " )},
80
- {" curv_hor_start" , Schema (&curv_hor_start, " " )},
81
- {" curv_hor_change" , Schema (&curv_hor_change, " " )},
82
- {" dx_end" , Schema (&dx_end, " " )},
60
+ {" dx_start" , Schema (&dx_start, " start of lane boundary in ego x-direction [m]" )},
61
+ {" dy_start" , Schema (&dy_start, " lateral distance to ego vehicle reference point [m]" )},
62
+ {" heading_start" , Schema (&heading_start, " yaw angle relative to ego x-direction [rad]" )},
63
+ {" curv_hor_start" , Schema (&curv_hor_start, " horizontal curvature at lane boundary start [1/m]" )},
64
+ {" curv_hor_change" , Schema (&curv_hor_change, " change of horizontal curvature at lane boundary start [1/m^2]" )},
65
+ {" dx_end" , Schema (&dx_end, " end of lane boundary in ego x-direction [m]" )},
66
+ {" exist_prob" , Schema (&exist_prob, " existence probability" )},
83
67
{" type" , Schema (&type, " lane boundary type" )},
84
68
{" color" , Schema (&color, " lane boundary color" )},
69
+ // clang-format on
85
70
}
86
71
.require_all ();
87
72
}
0 commit comments