WOLFRAM SYSTEMMODELER

CoordinateSystem

Visualizing an orthogonal coordinate system of three axes

Wolfram Language

In[1]:=
SystemModel["PlanarMechanics.Visualizers.Internal.CoordinateSystem"]
Out[1]:=

Information

Note: This element is intended to be used in PlanarWorld and its derivatives only! To visualize a coordinate system in your model, the best solution is usually to use the visualizer Advanced.CoordinateSystem. The only difference between this two visualizers is that the current one does not utilizes outer planarWorld, whereas the other does.

This element enbles visualization of an orthogonal coordinate system as shown in the following picture.

model Visualizers.Advanced.CoordinateSystem

The variables r, R and r_shape are declared as (time varying) input variables. If the default equation is not appropriate, a corresponding modifier equation has to be provided in the model where a CoordinateSystem instance is used, e.g., in the form

PlanarMechanics.Visualizers.Advanced.CoordinateSystem coordinateSystem(r = {sin(time), 0, 0.3});

Color of each axis can be set individually using RGB color space given in the range 0 .. 255. The predefined type Types.Color contains a menu definition of the colors used in the library (will be replaced by a color editor).

Parameters (8)

axisLength

Value: 0.5

Type: Length (m)

Description: Length of world axes arrows

axisDiameter

Value: axisLength / 40

Type: Diameter (m)

Description: Diameter of world axes arrows

color_x

Value: PlanarMechanics.Types.Defaults.FrameColor

Type: Color

Description: Color of x-arrow

color_y

Value: color_x

Type: Color

Description: Color of y-arrow

color_z

Value: color_x

Type: Color

Description: Color of z-arrow

axisShowLabels

Value: true

Type: Boolean

Description: True, if labels shall be shown

labelStart

Value: 1.05 * axisLength

Type: Length (m)

scaledLabel

Value: PlanarMechanics.Types.Defaults.FrameLabelHeightFraction * axisDiameter

Type: Length (m)

Inputs (3)

r

Default Value: {0, 0, 0}

Type: Position[3] (m)

Description: Position vector from origin of world frame to origin of object frame, resolved in world frame

R

Default Value: MB.Frames.nullRotation()

Type: Orientation

Description: Orientation object to rotate the world frame into the object frame

r_shape

Default Value: {0, 0, 0}

Type: Position[3] (m)

Description: Position vector from origin of object frame to shape origin, resolved in object frame

Components (7)

R

Type: Orientation

Description: Orientation object to rotate the world frame into the object frame

x_arrow

Type: Arrow

x_label

Type: Lines

y_arrow

Type: Arrow

y_label

Type: Lines

z_arrow

Type: Arrow

z_label

Type: Lines

Used in Components (3)

PlanarWorld

PlanarMechanics

Planar world coordinate system + gravity field + default animation definition

PlanarWorldIn3D

PlanarMechanics

Planar world coordinate system + gravity field + default animation definition

CoordinateSystem

PlanarMechanics.Visualizers.Advanced

Visualizing an orthogonal coordinate system of three axes