Output viewpoint as images in simulink 3D animation

2 Ansichten (letzte 30 Tage)
Arif Billah
Arif Billah am 16 Mär. 2021
Bearbeitet: Arif Billah am 5 Apr. 2021
I'm currently simulating a multi-agent swarm algorithm that uses visual feedback for navigation. To acquire the visual input (simulate a camera sensor) in real-time while the simulation is running, I've decided to use simulink 3D animation. However, there seems to be no built-in camera sensors to be used as nodes in the simulink 3D world editor so I've decided to set viewpoints that are attached to each agent and extract that view during the simulation to use as feedback.
I can't seem to find an option to extract viewpoint views as images in the VR source block or in the 3D world editor. Any help will be greatly appreciated, thanks in advance!

Akzeptierte Antwort

Jan Houska
Jan Houska am 16 Mär. 2021
Hi Arif,
please use the VR To Video block from the Simulink 3D Animation library. For an example how to use it, please see the vr_octavia_video example. If you need multiple views, you can use multiple VR To Video blocks in a model.
Good Luck, Jan
  1 Kommentar
Arif Billah
Arif Billah am 5 Apr. 2021
Bearbeitet: Arif Billah am 5 Apr. 2021
Thank you sir for the quick response, and I apologize for the late reply. Your suggestion worked! I have been able to extract multiple viewpoints as images from multiple VR To Video blocks and that is exactly what I wanted to do. Thank you very much. I've stumbled upon a new roadblock now for which I shall open up another thread.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu General Applications finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by