MATLAB Animation

Create six–degrees-of-freedom multibody custom geometry block

Library

Animation/MATLAB-Based Animation

Description

The MATLAB Animation block creates a six-degrees-of-freedom multibody custom geometry block based on the Aero.Animation object. This block animates one or more vehicle geometries with x-y-z position and Euler angles through the specified bounding box, camera offset, and field of view. This block expects the rotation order z-y-x (psi, theta, phi).

To update the camera parameters in the animation, first set the parameters then close and double-click the block to reopen the MATLAB® Animation window.

To access the dialog box for this block, right-click the block, then select Mask Parameters. Alternatively, double-click the block to display the MATLAB Animation window, then click the Block Parameters icon.

Dialog Box

Vehicles

Specifies the vehicle to animate. From the list, select from 1 to 10. The block mask inputs change to reflect the number of vehicles you select. Each vehicle has its own set of inputs, denoted by the number at the beginning of the input label.

Geometries

Specifies the vehicle geometries. You can specify these geometries using one of the following:

Bounding box coordinates

Specifies the boundary coordinates for the vehicle.

This parameter is not tunable during simulation. A change to this parameter takes effect after simulation stops.

Camera offset

Specifies the distance from the camera aim point to the camera itself.

This parameter is not tunable during simulation. A change to this parameter takes effect after simulation stops.

Camera view angle

Specifies the camera view angle. By default, the camera aim point is the position of the first body lagged dynamically to indicate motion.

This parameter is not tunable during simulation. A change to this parameter takes effect after simulation stops.

Sample time

Specify the sample time (-1 for inherited).

Inputs and Outputs

InputDimension TypeDescription

First

VectorContains the altitude, the crossrange position, and the downrange position of the vehicle in Earth coordinates.

OutputDimension TypeDescription

First

VectorsContains the Euler angles (roll, pitch, and yaw) of the vehicle.

See Also

Aero.Animation in the Aerospace Toolbox documentation

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS