Link to Models
Visualize a dynamic system simulation by connecting a Simulink block diagram orSimscape Multibody Linkto a virtual world. Simulating the model generates signal data for a dynamic system, which you can use to control and animate the virtual world.
Use theSimulink 3D Animation™block library to connect to a Simulink model to a virtual world. TheVR Sink块从车辆仿真软件允许你写值金宝appck ports to specified virtual world fields. To provide interactivity between a virtual world viewer and a Simulink model, use aVR Sourceblock or other blocks such as aSpace Mouse Inputblock.
To view the behavior of a model created with theSimscape Multibody Linksoftware:
Build a model of a machine in the Simulink interface usingSimscape Multibody Linkblocks.
Create a detailed visual representation of your machine in a virtual world.
Connect the virtual world to theSimscape Multibody Linkbody sensor outputs.
View the behavior of the bodies in a virtual world viewer.
Functions
vrlib |
Open Simulink block library for Simulink 3D Animation |
vrjoystick |
Create joystick object |
vrspacemouse |
Create space mouse object |
vrcoordm2vr |
Convert MATLAB coordinates to VR coordinates |
vrcoordvr2m |
Convert VR coordinates to MATLAB coordinates |
vrrotmat2vec |
Convert rotation from matrix to axis-angle representation |
vrrotvec2mat |
Convert rotation from axis-angle to matrix representation |
Blocks
VR Sink | Write data from Simulink model to virtual world |
VR Source | Read data from virtual world to Simulink model |
VR To Video | Write data from Simulink model to virtual world (video output port enabled) |
VR Tracer | Trace trajectory of object in associated virtual scene |
VR Placeholder | Send unspecified value to Simulink 3D Animation block |
VR Signal Expander | Expand input vectors into fully qualified virtual world field vectors |
Joystick Input | Process input from asynchronous joystick device |
Space Mouse Input | Process input from space mouse device |
Cross Product | Cross product of two 3-D vectors |
Normalize Vector | Unit vector parallel to input vector |
Rotation Between 2 Vectors | Virtual world rotation between two 3-D vectors |
Rotation Matrix to VRML Rotation | Convert rotation matrix into representation used in virtual world |
VR Rotation to Rotation Matrix | Convert axis/angle rotation to rotation matrix |
VR MATLAB协调s | Convert VR coordinates to MATLAB coordinates |
MATLAB to VR Coordinates | Convert MATLAB coordinates to VR coordinates |
Viewpoint Direction to VRML Orientation | Convert viewpoint direction to virtual world orientation |