Fixed namespace termination comments in AdTypes.h, simplified init_ego_vehicle in AdFunctions.cc
parent
f11eef6a7a
commit
bf7bc9e4a3
|
@ -22,20 +22,19 @@ namespace Data
|
|||
|
||||
Types::Vehicle init_ego_vehicle()
|
||||
{
|
||||
Types::Vehicle ev =
|
||||
{.id = Constants::EGO_VEHICLE_ID,
|
||||
.lane = Types::Lane::Center,
|
||||
.speed_mps = Utils::kph_to_mps(135),
|
||||
.rel_distance_m = 0,
|
||||
return Types::Vehicle{
|
||||
.id = Constants::EGO_VEHICLE_ID,
|
||||
.lane = Types::Lane::Center,
|
||||
.speed_mps = Utils::kph_to_mps(135),
|
||||
.rel_distance_m = 0,
|
||||
};
|
||||
return ev;
|
||||
}
|
||||
|
||||
} // namespace Ad::Data
|
||||
|
||||
namespace Visualize
|
||||
{
|
||||
|
||||
|
||||
void print_vehicle(const Types::Vehicle vehicle)
|
||||
{
|
||||
std::cout << "Vehicle " << vehicle.id << '\n';
|
||||
|
|
|
@ -25,5 +25,5 @@ struct Vehicle
|
|||
double rel_distance_m;
|
||||
};
|
||||
|
||||
} // namespace Types
|
||||
} // namespace Ad::Types
|
||||
} // namespace Ad
|
||||
|
|
Loading…
Reference in New Issue