Aero.Node
Create node object for use with virtual reality animation
Syntax
h = Aero.Node
Description
h = Aero.Node
creates a node object for use with virtual reality animation. Typically, you do not need to create a node object with this method. This is because the.wrl
file stores the information for a virtual reality scene. During the initialization of the virtual reality animation object, any node with aDEF
statement in the specified.wrl
file has a node object created.
When working with nodes, consider the translation and rotation. Translation is a 1-by-3 matrix in the aerospace body coordinate system defined for the VirtualRealityAnimation object or another coordinate system. In the latter case, you can use theCoordTransformFcn
function to move it into the defined aerospace body coordinate system. The defined aerospace body coordinate system is defined relative to the screen asx-left,y-in,z-down.
Rotation is a 1-by-3 matrix, in radians, that specifies the rotations about the right-handx-y-zcoordinate axes. The order of application of the rotation isz-y-x(yaw, pitch, and roll (Y-P-R)). This function uses theCoordTransformFcn
to apply the translation and rotation from the input coordinate system to the defined aerospace body coordinate system. The function then moves the translation and rotation from the defined aerospace body coordinate system to the defined VRMLx-y-z坐标VirtualRealityAnimation对象. The defined VRML coordinate system is defined relative to the screen asx-right,y-up,z-out.
Constructor Summary
Constructor | Description |
---|---|
点头e |
Create node object for use with virtual reality animation. |
Method Summary
Method | Description |
---|---|
findstartstoptimes |
Return start and stop times for time series data. |
move |
Change node translation and rotation. |
update |
Change node position and orientation versus time data. |
Property Summary
Property | Description | Values |
---|---|---|
Name |
Specify name of the node object. | Character vector | string |
VRNode |
Return the handle to thevrnode (Simulink 3D Animation)object associated with the node object. |
MATLAB array |
CoordtransformFcn |
Specify a function that controls the coordinate transformation. | MATLAB array |
TimeSeriesSource |
Specify time series source. | MATLAB array |
TimeseriesSourceType |
指定的时间序列数据类型存储在'TimeSeriesSource' . Five values are available. They are listed inTimeSeriesSourceType Properties. The default value is'Array6DoF' . |
Character vector | string |
TimeseriesReadFcn |
Specify time series read function. | MATLAB array |
The time series data, stored in the property'TimeSeriesSource'
, is interpreted according to the'TimeSeriesSourceType'
property, which can be one of:
TimeSeriesSourceType Properties
Property | Description |
---|---|
'Timeseries' |
MATLAB
The values are resampled. |
'Timetable' |
MATLAB
The values are resampled. |
'StructureWithTime' |
Simulink struct with time (for example, Simulink root outport logging
Signals are linearly interpolated vs. time using |
'Array6DoF' |
A double-precision array inn rows and 7 columns for 6-DoF data:time lat lon alt phi theta psi . If a double-precision array of 8 or more columns is in'TimeSeriesSource' , the first 7 columns are used as 6-DoF data. |
'Array3DoF' |
A double-precision array inn rows and 4 columns for 3-DoF data:time lat alt theta . If a double-precision array of 5 or more columns is in'TimeSeriesSource' , the first 4 columns are used as 3-DoF data. |
'Custom' |
Position and angle data is retrieved from'TimeSeriesSource' by the currently registered'TimeseriesReadFcn' . |
Version History
Introduced in R2007b