
How visualize camera field of view
    21 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Randika Vithanage
 el 9 de Mzo. de 2018
  
    
    
    
    
    Comentada: Steve Miller
    
 el 23 de Mzo. de 2021
            Hi,
1) Is there a way to visualize field of view (fov) of a camera view using "plotCamera" command or any other built-in function in MATLAB? In essence, I want to plot a camera with a given pose and then visualize its fov: 60° horiz x 49.5° vert. (73° diagonal) using a pyramid.
2) Is there a way to use Simscape Multibody and get the simulated camera view when the pose and fov of a camera is defined? For example, I want to include a SolidWorks CAD model into simscape and demonstrated how it could be viewed using a particular camera place with different poses.
Your advice is highly appreciated. Many thanks in advance.
0 comentarios
Respuesta aceptada
  Steve Miller
    
 el 9 de Mzo. de 2018
        For your first question, you could use a semitransparent solids to visualize field of view. That could be a solid pyramid or just a flat area (thin rectangle).
For your second question, you can define cameras within the Mechanics Explorer. The location and orientation of the camera can change during the animation of the simulation results, and those results can be exported to a video.
Below is an example of an animation exported from the Simscape Multibody Mechanics Explorer with a dynamic camera. The camera can also be configured to track the box, always keeping it in the center of the frame. This example is available on the File Exchange: Robot Arm with Conveyor Belts.

--Steve
5 comentarios
  fmo2641
 el 23 de Mzo. de 2021
				Is there a way to use the the camera output for some basic image processing in real time?
  Steve Miller
    
 el 23 de Mzo. de 2021
				At this time the visual output from the Mechanics Explorer cannot be used within the simulation.  Users have routed the position information from Simscape Multibody rendering programs, such as Unreal, and used that animation as input to image processing algorithms.   For an example, see the Simscape Vehicle Templates.
Más respuestas (0)
Ver también
Categorías
				Más información sobre Simulation and Analysis en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



