Main Content

Aero.Node

Create node object for use with virtual reality animation

Syntax

h = Aero.Node

Description

h = Aero.Nodecreates 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.wrlfile stores the information for a virtual reality scene. During the initialization of the virtual reality animation object, any node with aDEFstatement in the specified.wrlfile 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 theCoordTransformFcnfunction 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 theCoordTransformFcnto 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'

MATLABtimeseriesdata with six values per time:

lat lon alt phi theta psi

The values are resampled.

'Timetable'

MATLABtimetabledata with six values per time:

lat lon alt phi theta psi

The values are resampled.

'StructureWithTime'

Simulink struct with time (for example, Simulink root outport logging'Structure with time'):

  • signals(1).values: lat lon alt

  • signals(2).values: phi theta psi

Signals are linearly interpolated vs. time usinginterp1.

'Array6DoF' A double-precision array innrows 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 innrows 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