Clear Filters
Clear Filters

why does the car not start from the initial position that is from the track during simulation ?

1 view (last 30 days)
i have created a vehicle control model in simulink. the car does not start from the given path during simulation in unreal engine, even though i have chosen the predifined curved track from simulink in driving scenario generator.

Answers (1)

Nishan Nekoo
Nishan Nekoo on 8 Aug 2023
It appears that you are not initializing the initial position of the vehicle correctly: https://www.mathworks.com/help/driving/ref/simulation3dvehiclewithgroundfollowing.html#mw_38d9dce2-9b3a-4028-9ae9-ecc2ea8e8674
Please set the parameter from the link above in the "Simulation 3D Vehicle with Ground Following" block so that the vehicle is iniitalized at the location that you desire.
You can use the code here to identify the initial position you want to use:

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!