As of right now, I don't have a solution for this error. However, I did find an alternative approach for doing the same thing. The drivingScenarioDesigner has cuboid versions of most of the 3D simulation environments, so I was able to use that to set the trajectory of the vehicle using that app. I followed this documentation: Design driving scenarios, configure sensors, and generate synthetic data - MATLAB (mathworks.com) under the last tab "Specify Vehicle Trajectories for 3D Simulation"
Missing .jpg files when running Automated Driving Toolbox Unreal Engine Simulation
1 view (last 30 days)
Show older comments
I'm following this example from the Matlab documentation:Select Waypoints for Unreal Engine Simulation - MATLAB & Simulink (mathworks.com)
So far, I've tried running the following code in Matlab 2023a and 2023b:
sceneName = 'ParkingLot';
[sceneImage, sceneRef] = helperGetSceneImage(sceneName);
imshow(sceneImage);
The above code works when I change the sceneName to be either "LargeParkingLot" or "USCityBlock", but fails when I do any other scene name. I'm trying valid scene names based on the documentation for the
helperGetSceneImage
function.
I found the location where the image files are located at "C:\Program Files\MATLAB\R2023a\toolbox\driving\drivingdata". It turns out that the image files corresponding to the scene names that do not work are indeed missing ("sim3d_ParkingLot.jpg" is missing whereas "sim3d_LargeParkingLot" is there). That appears to be the case for 2023a and 2023b. I checked this on two seperate computers.
I was able to find the missing image files ("sim3d_ParkingLot.jpg") in 2021a and the code ran in that version without any problems. I then copied the missing image files from 2021a and pasted them into the exact same location in the 2023a installation. The code still does not work in 2023a.
Why are these files missing from the 2023a installation, and does anyone have any ideas for how to solve this?
Answers (2)
SACHIN KHANDELWAL
on 27 Dec 2023
Edited: SACHIN KHANDELWAL
on 18 Jan 2024
Hi Upneet,
The issue you are encountering is attributed to the absence of the specified required files. The files are available for specific examples. The example runs without any issues unless you modifies it to use a different scene than the one the example uses.
Thanks
Steven Lord
on 18 Jan 2024
How are you trying to run the code in the example? Have you opened the example itself (so MATLAB changes to the folder where the example's files are located) or are you just running code you've copied and pasted from the example in the Command Window? If you're doing the latter (as I suspect you are) try opening the example in MATLAB before doing so.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!