main content

interact with virtual reality worlds -凯发k8网页登录

create and interact with matlab® virtual world objects, input virtual world data to simulink® models

you can use matlab functions and classes to interact with virtual reality worlds. create a virtual world object (vrobject) and node objects (vrnode) to represent a virtual world that you create with simulink 3d animation™. change and control the degrees of freedom for the virtual world from within the matlab environment by setting values for the available virtual world nodes and their fields using vrnode object methods.

virtual reality scenes can contain sensors, which are nodes that generate events and output values depending on time, navigation, and actions and distance changes in the scene. these nodes add interactivity to the virtual world. you can use simulink 3d animation functions to read sensor field values into simulation models and control simulation based on the user interaction with the virtual scene. you can write an s-function or a matlab function block that reads the sensor output.

functions

create new vrworld object associated with virtual world
update virtual world
create node or handle to existing node
create virtual reality canvas
remove all closed virtual worlds from memory
list virtual worlds in memory
list details about virtual worlds in memory
create virtual reality figure
capture virtual reality figure image
close virtual reality figure
return property value of vrfigure object
check validity of vrfigure object handles
set property values of vrfigure object
handle for active virtual reality figure
current callback vrfigure object
close virtual reality figure windows
stereoscopic vision settings for vr.canvas and vr.figure objects
convert viewpoint direction to orientation
convert viewpoint orientation to direction
calculate rotation between two vectors
convert rotation from matrix to axis-angle representation
convert rotation from axis-angle to matrix representation
convert virtual world indexedfaceset nodes to matlab patches
convert matlab patches to indexedfaceset nodes
create joystick object
create space mouse object

blocks

read data from virtual world to simulink model

matlab interaction

use virtual worlds that interface to simulink block diagrams and to matlab objects and functions.

connect matlab to a virtual world and interact with that virtual world through the matlab command-line interface by creating vrworld and vrnode objects.

open a virtual world to view the virtual world in a virtual world viewer, scan its structure, and change virtual world properties from the matlab command window.

interact with virtual world by using vrnode object methods to set vrworld object property values for all the available virtual world nodes and their fields.

close virtual worlds and remove them from memory.

explore the data types used by nodes for defining objects and the types of data that can appear in the node fields and events.

vrml sensor input to models

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

interactive mode allows clients to modify a remote virtual world via events from sensor nodes defined in the virtual world.

detect object collisions

use collision detection to avoid having two objects collide, or to trigger a change in virtual world object behavior or display.

网站地图