主要内容

链接到模型

连接虚拟现实世界以模拟金宝app®SIMSCAPE™MultiBody™dynamic system models

Visualize a dynamic system simulation by connecting a Simulink block diagram orSIMSCAPE多体Link到一个虚拟世界。模拟该模型为动态系统生成信号数据,您可以使用该系统来控制和动画虚拟世界。

Use the金宝appSimulink 3D动画™块库将其连接到模型,以与虚拟世界连接。金宝app这VR Sink块从车辆仿真软件允许你写值金宝appck ports to specified virtual world fields. To provide interactivity between a virtual world viewer and a Simulink model, use aVR源堵塞or other blocks such as a太空鼠标输入堵塞.

To view the behavior of a model created with theSIMSCAPE多体Linksoftware:

  1. Build a model of a machine in the Simulink interface usingSIMSCAPE多体Link块。

  2. Create a detailed visual representation of your machine in a virtual world.

  3. 将虚拟世界连接到SIMSCAPE多体Linkbody sensor outputs.

  4. View the behavior of the bodies in a virtual world viewer.

Functions

Vrlib Open金宝app堵塞library for金宝app3D Animation
vrjoystick 创建操纵杆对象
VRSpaceMouse Create space mouse object
VRCOORDM2VR ConvertMATLABcoordinates to VR coordinates
vrcoordvr2m Convert VR coordinates toMATLABcoordinates
vrrotmat2vec 将旋转从矩阵转换为轴角表示
vrrotvec2mat 将旋转从轴角转换为矩阵表示

VR Sink 写数据金宝app虚拟世界的模型
VR源 Read data from virtual world to金宝app模型
VR到视频 写数据金宝app虚拟世界的模型(video output port enabled)
VR Tracer 关联虚拟场景中对象的跟踪轨迹
VR Placeholder 将未指定的值发送到金宝app3D Animation堵塞
VR Signal Expander Expand input vectors into fully qualified virtual world field vectors
操纵杆输入 流程输入来自异步操纵杆设备
太空鼠标输入 Process input from space mouse device
跨产品 两个3-D向量的跨产品
Normalize Vector Output unit vector parallel to input vector
2个向量之间的旋转 两个3-D向量之间的虚拟世界旋转
旋转矩阵到VR旋转 将旋转矩阵转换为轴/角旋转
VR旋转至旋转矩阵 将轴/角旋转转换为旋转矩阵
VR到MATLAB坐标 Convert VR coordinates toMATLABcoordinates
MATLAB到VR坐标 ConvertMATLABcoordinates to VR coordinates
Viewpoint Direction to VRML Orientation 将观点方向转换为虚拟世界取向

金宝app模型和生成的代码链接

Virtual Reality World and Dynamic System Examples

使用接口的虚拟世界来模拟框图和MATLAB金宝app®objects and functions.

Connect Virtual Worlds and Models

将Simulink模型与金宝app虚拟世界相关联,并将信号从Simulink模型连接到虚拟世界。

使用传感器

基于虚拟世界或虚拟世界中事件的用户输入,在仿真过程中移动或修改虚拟世界对象。

Interact with Generated Code

Have a virtual world that you create with the金宝appSimulink 3D动画product interact with code generated by the金宝appSimulink Coder™产品并在第三方C/C ++编译器中编译金宝appSimulink Desktop实时™环境。

SIMSCAPE多体并导入CAD模型链接

Link to Simulink and Simscape Multibody Models

通过在动态模型对象数量和相应的虚拟世界对象属性之间建立关联来建立模型和虚拟世界之间的实时数据连接。

修改CAD模型虚拟世界

Use the 3D World Editor or other editor to modify the results of CAD tool export filters manually.