Lecrapouille / Highway

[Application][WIP] Open-source simulator for autonomous driving research.
GNU General Public License v3.0
2 stars 1 forks source link

Move Debug Trajectory #15

Open Lecrapouille opened 1 year ago

Lecrapouille commented 1 year ago

Renderer.cpp: void Renderer::draw(Car const& car, ... the following code

    if (car.isEgo() && car.hasECU<AutoParkECU>())
    {
        AutoParkECU const& ecu = car.getECU<AutoParkECU>();
        if (ecu.hasTrajectory())
        {
            ecu.trajectory().draw(target, states);
        }
    }

is not the best place to be called: