CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

function

LieGroups.SE23.Generic.log_map

SE_2(3) logarithmic map

Public declarations

Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.

RoleNameTypeDimensions / attributes / defaultDescription
inputelementElement
outputtangentReal[9]

Modelica declarations and implementation

Show parameters, interfaces and source

Parameters, inputs, outputs, defaults and equations from the source file.

function log_map "SE_2(3) logarithmic map"
  input Element element;
  output Real tangent[9];
protected
  Real inverseJ[3, 3];
algorithm
  tangent[7:9] := Rotation.log_map(element.rotation);
  inverseJ := LieGroups.SO3.Quat.left_jacobian_inv(tangent[7:9]);
  tangent[1:3] := inverseJ * element.position;
  tangent[4:6] := inverseJ * element.velocity;
end log_map;