Using DrivingScenarioDesigner for 3D view with visualizations of different categories (Pedestrians, Bicyclists, Barriers, etc.)
7 次查看(过去 30 天)
显示 更早的评论
Hi,
I am using Driving Scenario Designer App to create Automated Driving Scenarios. There are options in the App, to include multiple object Actor classes (Pedestrians, Bicyclists, Barriers, in addition to the Trucks and Cars), to configure the 3D visualization settings (to select whether the vehicle to be Sedan/Hatchback.., to select Pedestrian to be male/female etc.)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/298473/image.png)
Attached is a sample scene created using the App. When I try to visualize the same using the provided option for 3D Display, this opens the AutoVrtlEnv application to show the 3D view of the respective objects. (Even the road and lane markings as per the settings).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/298478/image.png)
But, when I try to use the scene data using the ScenarioReader block under AutomatedDrivingToolbox, the Scenario Reader provides only the options to access the Actors and Lane markings.
There is no option to include the scene as is, as the Simulation 3D Scene Configuration block uses a predefined set of scenes only.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/298483/image.png)
Because of this, the actors which were created for the DrivingScenarioDesigner App scene are getting misplaced in the default scenes (Since scene loading is not happening).
Also, the visualization for the Actors are limited only to vehicles though we are able to develop multiple other classes (Pedestrians, Bicylcists, Barriers) in the Driving Scenario App.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/298488/image.png)
Becasue of this, even my Pedestrian or Bicyclists are getting visualized as Vehicles.
Since the option to visualize proper classes are already available (similar to the 2nd picture above), is it possible to use a script to call the AutoVrtlEnv application and load the respective 3D classes dynamically instead of using the standard blockset.?
Thanks.
5 个评论
Xiaolan Guo
2021-11-8
Thanks for your answer. I'm still confused about how to dynamiclly update pedestrain from simulink. Still use the "Simulation 3D vehicle with Ground Following" block?
Xiaolan Guo
2021-11-16
I've been confused by this question for a long time, how to update those objects which are defined in unreal engine?
By the way, can you simulate collision in matlab 3D block? cuz I found those vehicles just overlaps and cross each others.
Thank you.
回答(1 个)
Bharath Bandari
2022-4-28
Hi @Manoj Kumar Subramanian, The 3D Display option is only to visualize the cuboid simulations in 3D view.
Follow below steps to cosimulate a scene created in DrivingScenearioDesigner in Unreal Engine
- export the scenario to OpenDRIVE format https://www.mathworks.com/help/driving/ug/export-driving-scenario-to-opendrive-file.html
- import the OpenDRIVE file into RoadRunner, https://www.mathworks.com/videos/importing-and-exporting-scenes-with-roadrunner-1597837006663.html
- Build and export the scene into .fbx file to import into Unreal Engine - you can watch it from 5:00 min https://www.mathworks.com/videos/integrating-roadrunner-with-matlab-simulink-1608193412399.html
1 个评论
Desirae
2023-12-12
I am using the video you posted in your step 3 to import a RoadRunner scene I made into Unreal Engine using Simulink. The video was made using Unreal Engine 4.27, but the current version of Unreal is 5.3. When I try to follow the instructions in your step 3 video, I get errors when I try to open the Unreal project from MATLAB (video time is 3:50 min). Instead of getting a pop up asking to rebuild the missing modules, I get a series of errors that always results in Unreal crashing and never loading properly (see below).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1567329/image.jpeg)
I tried to find the missing "PhysXVehicles" plugin, but it is no longer available in Unreal Engine, so I cannot figure out how to import my RoadRunner scene into Unreal Engine v5.3 using Simulink. Do you have any suggestions please? I would greatly appreciate the help.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!