Skip to content

Commit f688e32

Browse files
committed
models: Initialize members of LaneBoundary class
1 parent a028c91 commit f688e32

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

models/include/cloe/component/lane_boundary.hpp

+12-12
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@ class LaneBoundary : public Confable {
5656
CONFABLE_FRIENDS(LaneBoundary)
5757

5858
public:
59-
int id;
60-
int prev_id;
61-
int next_id;
62-
double dx_start;
63-
double dy_start;
64-
double heading_start;
65-
double curv_hor_start;
66-
double curv_hor_change;
67-
double dx_end;
68-
double exist_prob;
69-
Type type;
70-
Color color;
59+
int id{-1};
60+
int prev_id{-1};
61+
int next_id{-1};
62+
double dx_start{0};
63+
double dy_start{0};
64+
double heading_start{0};
65+
double curv_hor_start{0};
66+
double curv_hor_change{0};
67+
double dx_end{0};
68+
double exist_prob{0};
69+
Type type{Type::Unknown};
70+
Color color{Color::Unknown};
7171

7272
std::vector<Eigen::Vector3d> points;
7373
};

0 commit comments

Comments
 (0)