Main Content

Link to Models

Connect virtual reality worlds to Simulink®andSimscape™ Multibody™动态系统模型

通过连接simulink框图或万博1manbetxSIMSCAPE多体链接to a virtual world. Simulating the model generates signal data for a dynamic system, which you can use to control and animate the virtual world.

使用万博1manbetxSimulink 3D Animation™block library to connect to a Simulink model to a virtual world. TheVR接收器块允许您从Simulink块端口编写值以指定的虚拟世界字段。万博1manbetx要提供虚拟世界观看者和模型模型之间的互动性,请使用万博1manbetxVR Source块或其他块,例如Space Mouse Input堵塞。

查看使用该模型创建的模型的行为SIMSCAPE多体链接软件:

  1. 使用Simulink界面中的机器模型万博1manbetxSIMSCAPE多体链接blocks.

  2. 在虚拟世界中创建机器的详细视觉表示。

  3. Connect the virtual world to theSIMSCAPE多体链接车身传感器输出。

  4. 在虚拟世界观众中查看身体的行为。

功能

vrlib 打开万博1manbetx块库万博1manbetx3D动画
vrjoystick Create joystick object
vrspacemouse 创建太空鼠标对象
vrcoordm2vr 兑换MATLAB坐标到VR坐标
VRCOORDVR2M 将VR坐标转换为MATLAB坐标
vrrotmat2vec 兑换rotation from matrix to axis-angle representation
vrrotvec2mat 兑换rotation from axis-angle to matrix representation

Blocks

VR接收器 Write data from万博1manbetxmodel to virtual world
VR Source 阅读来自虚拟世界的数据万博1manbetxmodel
VR To Video Write data from万博1manbetx模型到虚拟世界(启用视频输出端口)
VR示踪剂 Trace trajectory of object in associated virtual scene
VR占位符 Send unspecified value to万博1manbetx3D动画block
VR信号扩展器 将输入向量扩展到完全合格的虚拟世界现场向量
Joystick Input Process input from asynchronous joystick device
Space Mouse Input 太空鼠标设备的过程输入
Cross Product Cross product of two 3-D vectors
标准化向量 输出单元向量平行于输入矢量
Rotation Between 2 Vectors Virtual world rotation between two 3-D vectors
Rotation Matrix to VR Rotation 兑换rotation matrix to axis/angle rotation
VR Rotation to Rotation Matrix 兑换axis/angle rotation to rotation matrix
VR to MATLAB Coordinates 将VR坐标转换为MATLAB坐标
MATLAB to VR Coordinates 兑换MATLAB坐标到VR坐标
VRML方向的观点方向 兑换viewpoint direction to virtual world orientation

万博1manbetxModels and Generated Code Links

虚拟现实世界和动态系统示例

Use virtual worlds that interface to Simulink block diagrams and to MATLAB®对象和功能。

连接虚拟世界和模型

Associate a Simulink model with a virtual world and connect signals from the Simulink model to the virtual world.

Use Sensors

Move or modify virtual world objects during simulation based on user input from the virtual world or events in the virtual world.

与生成的代码互动

有一个虚拟世界,您可以用Simulink 3D Animation产品与由Simulink Coder™product and compiled with a third-party C/C++ compiler in theSimulink Desktop Real-Time™environment.

SimscapeMultibodyand Imported CAD Model Links

链接到Simul万博1manbetxink和Simscape多体模型

Establish a live data connection between the model and the virtual world by creating associations between dynamic model object quantities and corresponding virtual world object properties.

Modify the CAD Model Virtual World

使用3D世界编辑器或其他编辑器手动修改CAD工具导出过滤器的结果。