链接到模型
连接虚拟现实世界以模拟金宝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:
Build a model of a machine in the Simulink interface usingSIMSCAPE多体Link块。
Create a detailed visual representation of your machine in a virtual world.
将虚拟世界连接到SIMSCAPE多体Linkbody sensor outputs.
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 | 将观点方向转换为虚拟世界取向 |