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 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
|
||||||
|
|
||||||
namespace Visualize
|
namespace Visualize
|
||||||
{
|
{
|
||||||
|
|
||||||
void print_vehicle(const Types::Vehicle vehicle)
|
void print_vehicle(const Types::Vehicle vehicle)
|
||||||
{
|
{
|
||||||
std::cout << "Vehicle " << vehicle.id << '\n';
|
std::cout << "Vehicle " << vehicle.id << '\n';
|
||||||
|
|
|
@ -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