PlanarWorld

Planar world coordinate system + gravity field + default animation definition

    PlanarWorld

Library

PlanarMechanics

Description

Model PlanarWorld defines all possible general parameters to make parameterization of models much more convenient. It has the following functionalites.

  1. It defines the global coordinate system fixed in ground and shows the x, y, z axes in animation if wanted.
  2. It contains all default parameters for animation, e.g. axis diameter, default joint length etc, which can still be overwritten by setting parameters in these models.
  3. It provides the default gravity definition and its animation.


The pure planar world cannot be coupled to the 3D world. It shall be used when no outer 3D world is available.

Parameters

PlanarWorld_0

NameLabelDescriptionData TypeValid Values

mo_constantGravity

constantGravity

Constant gravity acceleration vector resolved in world frame

Vector of size 2

mo_enableAnimation

enableAnimation

= true, if animation of all components is enabled

Scalar

true
false

mo_animateWorld

animateWorld

= true, if world coordinate system shall be visualized

Scalar

true
false

mo_animateGravity

animateGravity

= true, if gravity field shall be visualized (acceleration vector or field center)

Scalar

true
false

mo_label1

label1

Label of horizontal axis in icon

String

mo_label2

label2

Label of vertical axis in icon

String

mo_ndim

ndim

Scalar

mo_ndim2

ndim2

Scalar

mo_scaledLabel

scaledLabel

Scalar

mo_labelStart

labelStart

Scalar

PlanarWorld_1

NameLabelDescriptionData TypeValid Values

mo_axisLength

axisLength

Length of world axes arrows

Scalar

mo_axisDiameter

axisDiameter

Diameter of world axes arrows

Scalar

mo_axisShowLabels

axisShowLabels

= true, if labels shall be shown

Scalar

true
false

mo_axisColor_x

axisColor_x

Color of x-arrow

Vector of size 3

mo_axisColor_y

axisColor_y

Color of y-arrow

Vector of size 3

mo_axisColor_z

axisColor_z

Color of z-arrow

Vector of size 3

mo_gravityArrowTail

gravityArrowTail

Position vector from origin of world frame to arrow tail, resolved in world frame

Vector of size 2

mo_gravityArrowLength

gravityArrowLength

Length of gravity arrow

Scalar

mo_gravityArrowDiameter

gravityArrowDiameter

Diameter of gravity arrow

Scalar

mo_gravityArrowColor

gravityArrowColor

Color of gravity arrow

Vector of size 3

PlanarWorld_2

NameLabelDescriptionData TypeValid Values

mo_defaultZPosition

defaultZPosition

Default for z positions of all the elements

Scalar

mo_nominalLength

nominalLength

"Nominal" length of PlanarMechanics

Scalar

mo_defaultJointLength

defaultJointLength

Default for the fixed length of a shape representing a joint

Scalar

mo_defaultJointWidth

defaultJointWidth

Default for the fixed width of a shape representing a joint

Scalar

mo_defaultBodyDiameter

defaultBodyDiameter

Default for diameter of sphere representing the center of mass of a body

Scalar

mo_defaultWidthFraction

defaultWidthFraction

Default for shape width as a fraction of shape length (e.g., for Parts.FixedTranslation)

Scalar

mo_defaultArrowDiameter

defaultArrowDiameter

Default for arrow diameter (e.g., of forces, torques, sensors)

Scalar

mo_defaultForceLength

defaultForceLength

Default for the fixed length of a shape representing a force (e.g., damper)

Scalar

mo_defaultForceWidth

defaultForceWidth

Default for the fixed width of a shape represening a force (e.g., spring, bushing)

Scalar

mo_defaultFrameDiameterFraction

defaultFrameDiameterFraction

Default for arrow diameter of a coordinate system as a fraction of axis length

Scalar

mo_defaultSpecularCoefficient

defaultSpecularCoefficient

Default reflection of ambient light (= 0: light is completely absorbed)

Scalar

mo_defaultN_to_m

defaultN_to_m

Default scaling of force arrows (length = force/defaultN_to_m)

Scalar

mo_defaultNm_to_m

defaultNm_to_m

Default scaling of torque arrows (length = torque/defaultNm_to_m)

Scalar

PlanarWorld_3

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

'r_0'
'R'
'g'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

See Also