How can I edit the Autonomous Emergency Breaking with Sensor Fusion example to use one of my own driving scenarios?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi I am a student currently working on a final year project investigating AEB with sensor fusion and Im a bit at a loss as to how to integrate my own driving scenarios with the AEB with Sensor Fusion model provided by Mathworks. I am pretty sure I will have to alter the helperSLAEBSetup function in a way that will allow me to initialise the variables from my own scenario into the work space and busses but I am not really sure how to do that.
My first thought before christmas was that I would just be able to turn my driving scenario into the scenario reader block and just plug it in but with how much of the Mathworks model relies on the setup script to create all the busses and extract the informaiton from the driving scenarios I dont believe this would be feasible.
Any help would be greatly apprecaited when it comes to reading information from my scenarios and implementing them into the model/busses. Once I understand this I want to be able to create a similar model :).
1 comentario
Simone
el 26 de En. de 2024
Hi Josh,
I assume your are referring to the following example:
As you figured out the required setup is done in the helperSLAEBSetup function. In this function also the drivingScenario is created:
if(nvp.scenarioFcnName ~= "scenario_AEB_CPNC_Variant")
scenarioFcnHandle = str2func(nvp.scenarioFcnName);
[scenario, egoVehicle] = scenarioFcnHandle();
else
[scenario, egoVehicle] = helperCreateSeedScenario();
end
You can call your own scenario creation function instead. The created scenario will be used by the Scenario Reader block and the required information will be extracted from the scenario.
Besides that, the configuration script allows you to adjust sensor and model parameters. Comments in the script help you to understand the parameters.
Regards,
Simone
Respuestas (1)
Nishan Nekoo
el 1 de Ag. de 2025
Looks like Simone has provided an answer above, copying it here:
Hi Josh,
I assume your are referring to the following example:
As you figured out the required setup is done in the helperSLAEBSetup function. In this function also the drivingScenario is created:
if(nvp.scenarioFcnName ~= "scenario_AEB_CPNC_Variant")
scenarioFcnHandle = str2func(nvp.scenarioFcnName);
[scenario, egoVehicle] = scenarioFcnHandle();
else
[scenario, egoVehicle] = helperCreateSeedScenario();
end
You can call your own scenario creation function instead. The created scenario will be used by the Scenario Reader block and the required information will be extracted from the scenario.
Besides that, the configuration script allows you to adjust sensor and model parameters. Comments in the script help you to understand the parameters.
Regards,
Simone
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!