I have a question about scenario generation in CarMaker. I have designed a controller for overtaking moving obstacles. Now, I want to test my controller in CarMaker. Let us assume that I have built the scenario, and I have my ego vehicle (the vehicle that I control) and another moving vehicle that my ego vehicle wants to overtake running.
My problem is that at every time step my controller needs to know where the moving obstacle is located ( the other moving vehicle’s position) and how far it is from my ego vehicle. Could you please tell me how I can receive these data in CarMaker?
My controller is implemented in Simulink.