CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

function

LieGroups.SE2.vee

Vee map: 3x3 se(2) matrix -> vector (M^vee)

Public declarations

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

RoleNameTypeDimensions / attributes / defaultDescription
inputMReal[3,3]3x3 Lie algebra matrix
outputxiReal[3]Lie algebra {vx, vy, omega}

Modelica declarations and implementation

Show parameters, interfaces and source

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

function vee "Vee map: 3x3 se(2) matrix -> vector (M^vee)"
  input Real M[3,3] "3x3 Lie algebra matrix";
  output Real xi[3] "Lie algebra {vx, vy, omega}";
algorithm
  xi[1] := M[1,3];
  xi[2] := M[2,3];
  xi[3] := M[2,1];
end vee;