Frames
Docstrings
Multibody.PlanarMechanics.PartialTwoFrames
Multibody.PlanarMechanics.ZeroPosition
Multibody.Frame
Multibody.PlanarMechanics.Frame
Multibody.Frame
— FunctionFrame(; name)
Frame
is the fundamental 3D connector in the multibody library. Most components have one or several Frame
connectors that can be connected together.
The Frame
connector has internal variables for
r_0
: The position vector from the world frame to the frame origin, resolved in the world framef
: The cut force resolved in the connector frametau
: The cut torque resolved in the connector frame- Depending on usage, also rotation and rotational velocity variables, accessed using
ori(frame).R
andori(frame).w
. The rotation matrix represents the rotation to rotate the world frame into the connector frame
Parameters
render = false
: If true, the connector is rendered in animationslength = 1.0
: Length of the frame when renderedradius = 0.1
: Radius of the frame when rendered
Multibody.PlanarMechanics.PartialTwoFrames
— ConstantPartialTwoFrames(;name)
Partial model with two frames
Connectors:
Multibody.PlanarMechanics.ZeroPosition
— ConstantZeroPosition(;name)
Set zero position vector and orientation object of frame_resolve
Connectors:
frame_resolve
FrameResolve Coordinate system fixed to the component with one cut-force and cut-torque
Multibody.PlanarMechanics.Frame
— FunctionFrame(;name)
Coordinate system (2-dim.) fixed to the component with one cut-force and cut-torque. All variables are resolved in the planar world frame.
Variables:
x
: [m] x positiony
: [m] y positionphi
: [rad] rotation angle (counterclockwise)fx
: [N] force in the x directionfy
: [N] force in the y directiontau
: [N.m] torque (clockwise)
Parameters:
render
: [Bool] Render the joint in animationslength
: [m] Length of each axis in animationsradius
: [m] Radius of each axis in animations