modelTransformRelativeVector

Transform relative vector in to another frame

Extends from Internal.PartialRelativeSensor (Base class for relative sensor models).

Information

The input vector "Real r_in[3]" is assumed to be a relative kinematic quantity between frame_a and frame_b that is defined to be resolved in the frame defined with parameter "frame_r_in". This model resolves vector r_in in the coordinate system defined with parameter "frame_r_out" and returns the transformed output vector as "Real r_out[3]";

Parameters

TypeNameDefaultDescription
Modelica.Mechanics.MultiBody.Types.ResolveInFrameABframe_r_inModelica.Mechanics.MultiBody.Types.ResolveInFrameAB.frame_aFrame in which vector r_in is resolved (world, frame_a, frame_b, or frame_resolve)
Modelica.Mechanics.MultiBody.Types.ResolveInFrameABframe_r_outframe_r_inFrame in which vector r_in shall be resolved and provided as r_out (world, frame_a, frame_b, or frame_resolve)

Connectors

TypeNameDefaultDescription
Modelica.Mechanics.MultiBody.Interfaces.Frame_aframe_a (from PartialRelativeSensor)Coordinate system a
Modelica.Mechanics.MultiBody.Interfaces.Frame_bframe_b (from PartialRelativeSensor)Coordinate system b
Modelica.Mechanics.MultiBody.Interfaces.Frame_resolveframe_resolveCoordinate system in which r_in or r_out is optionally resolved
Blocks.Interfaces.RealInput[3]r_inInput vector resolved in frame defined by frame_r_in
Blocks.Interfaces.RealOutput[3]r_outInput vector r_in resolved in frame defined by frame_r_out