3D vehicle visualisation in MATLAB/Simulink - matlab

I am new to the MATLABS platform and am trying to understand how to display the 3D visualisation with graphs shown at 11:40 and at 18:10 in the video below, I downloaded and ran the example code that he provided but only the two spectrograms are operning.
If anyone can point me in the right direction, it would be very much appreciated.
Thanks.
https://uk.mathworks.com/videos/radar-system-modeling-and-simulation-for-automotive-advanced-driver-assistance-systems-107121.html?elqsid=1551737420797&potential_use=Student

As per the voice over at about 11:32, they have run the first simulation model, which is set up to write data to the MATLAB Workspace, and then to generate the virtual reality simulation they are running a second model.
From the video, at about 11:36, the second model appears to be called VR_Simulation. This second model almost certainly requires the Simulink 3D Animation tools.

Related

How to make a complex robot model in webots?

I make my robot using cyberbotics webots. I can’t figure out how to make a beautiful 3D model. At least at the mantis hexapod level.
I understand that you can import ready-made fraud only in vrml97 format, but it is not supported by fusion 360 and other programs.
But in webots itself, I did not find a way to build a model more complicated than using cubes, pyramids, and other simple objects.
There was also an idea to assemble a model from a large number of rectangles using grouping, but it seems to me that such a model will greatly slow down.
Is it possible to see how the finished robots are made, and make changes to them?
The node you are looking for is the IndexedFaceSet https://www.cyberbotics.com/doc/reference/indexedfaceset, it allows you to efficiently model a shape using a set of triangle faces, you will find an example of this in this simulation world: https://cyberbotics.com/doc/guide/samples-geometries#high_resolution_indexedfaceset-wbt
One possible workflow to do this is to use Blender to create your mesh and then use the Webots exporter to export it to Webots: https://github.com/cyberbotics/blender-webots-exporter

Extracting 2D surface from 3D STEP model

I'm trying to figure out a good way to programmatically generate contours describing a 2D surface, from a 3D STEP model. Application is generating NC code for a laser-cutting program from a 3D model.
Note: it's easy enough to do this in a wide variety of CAD systems. I am writing software that needs to do it automatically.
For example, this (a STEP model):
Needs to become this (a vector file, like an SVG or a DXF):
Perhaps the most obvious way of tackling the problem is to parse the STEP model and run some kind of algorithm to detect planes and select the largest as the cut surface, then generate the contour. Not a simple task!
I've also considered using a pre-existing SDK to render the model using an orthographic camera, capture a high-res image, and then operating on it to generate the appropriate contours. This method would work, but it will be CPU-heavy, and its accuracy will be limited to the pixel resolution of the rendered image - not ideal.
This is perhaps a long shot, but does anyone have thoughts about this? Cheers!
I would use a CAD library to load the STEP file (not a CAD API), look for the planar face with the higher number of edge curves in the face loop and transpose them on the XY plane. Afterward, finding 2D geometry min/max for centering etc. would be pretty easy.
Depending on the programming language you are using I would search for "CAD control" or "CAD component" on Google combining it with "STEP import".

3D volume rendering in MATLAB

I started with the vol3d function from MATLAB file exchange for the 3D display part but its slowing down the entire application.
I am working on a MATLAB based GUI. Need to display a volume of size 512X512X512, single precision. The display has 4 different views of the volume. 3 standard orthogonal views and the 4th view is the 3D rendered isometric view.
With vol3D, The display is looking fine but its causing the GUI little lagging and slow. If I remove the vol3d function, the GUI works fine, faster.
I am new in the field of 3D volume rendering. What are the alternatives to this volume rendering in MATLAB. Is there any way to call some C-subroutine using mex, do the calculation in C and display in MATLAB. I have a good GPU(GeForce gtx titan x, 12 gb) but I am afraid I am not utilizing it well for the volume rendering thing.
Any suggestions are welcome.
thanx for reading :)

Using Haar features for cascade object detector MATLAB

I am trying to use the vision.cascadeObjectDetector (MATLAB) to detect heads from a CCTV footage(and not faces). Till now, I have tried the following:
Used vision.cascadeObjectDetector to detect faces.
trained it to detect a sign (an example shown in read me file)
created a folder with positive & negative training HEAD images & same for testing
tried to create a .mat file using trainingImageLabeler (although it gave me an error when trying to pass it as param to the object detector).
Can someone try to put me in the right track, to start detecting heads using Viola-Jones Haar features please?

How to make a 3D plot in paraview with a time-axis?

After some simulations with fenics, I saved the results in vtk format, so that I can load it in ParaView. The results are 1D-data, that are time-dependent. In the end, it should look like these example figures, I found in some papers:
This means one axis for space coordinates, one for the time and one for the actual data. ParaView shows me my data and with "warp by scalar" I get the desired result, however only for exactly one time step. Animating works too, but I do not want to create a video for 1D-data, when it looks much nicer in one 3D plot.
How can I add the time as additional axis in ParaView?
This, I am afraid, is not supported currently. It's certainly a nice feature, however. I'd suggest making a feature request on the ParaView Bug Tracker