function
SLAM.PoseGraph.PGSkew
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | x | Real | [3] | |
| output | S | Real | [3,3] |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function PGSkew
input Real x[3]; output Real S[3,3];
algorithm
S := zeros(3,3);
S[1,2] := -x[3]; S[1,3] := x[2]; S[2,1] := x[3];
S[2,3] := -x[1]; S[3,1] := -x[2]; S[3,2] := x[1];
end PGSkew;