Fixed namespace termination comments in AdTypes.h, simplified init_ego_vehicle in AdFunctions.cc
parent
a3d3f02d7b
commit
7aa1aa5423
|
@ -22,13 +22,12 @@ namespace Data
|
||||||
|
|
||||||
Types::Vehicle init_ego_vehicle()
|
Types::Vehicle init_ego_vehicle()
|
||||||
{
|
{
|
||||||
Types::Vehicle ev =
|
return Types::Vehicle{
|
||||||
{.id = Constants::EGO_VEHICLE_ID,
|
.id = Constants::EGO_VEHICLE_ID,
|
||||||
.lane = Types::Lane::Center,
|
.lane = Types::Lane::Center,
|
||||||
.speed_mps = Utils::kph_to_mps(135),
|
.speed_mps = Utils::kph_to_mps(135),
|
||||||
.rel_distance_m = 0,
|
.rel_distance_m = 0,
|
||||||
};
|
};
|
||||||
return ev;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Ad::Data
|
} // namespace Ad::Data
|
||||||
|
|
|
@ -25,5 +25,5 @@ struct Vehicle
|
||||||
double rel_distance_m;
|
double rel_distance_m;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Types
|
} // namespace Ad::Types
|
||||||
} // namespace Ad
|
} // namespace Ad
|
||||||
|
|
Loading…
Reference in New Issue