CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

function

LieGroups.SE3.Generic.log_map

SE(3) logarithmic map

Public declarations

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

RoleNameTypeDimensions / attributes / defaultDescription
inputelementElement
outputtangentReal[6]{translation, rotation}

Modelica declarations and implementation

Show parameters, interfaces and source

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

function log_map "SE(3) logarithmic map"
  input Element element;
  output Real tangent[6] "{translation, rotation}";
algorithm
  tangent[4:6] := Rotation.log_map(element.rotation);
  tangent[1:3] := LieGroups.SO3.Quat.left_jacobian_inv(tangent[4:6])
    * element.position;
end log_map;