You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/usecases/transforming_coordinate_systems.adoc
+69-1Lines changed: 69 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,75 @@ When running simulations, it is frequently necessary to transform coordinates fr
7
7
This section provides an overview of the messages and fields involved and their relationship for this task.
8
8
It demonstrates how a global coordinate system, vehicle coordinate system, and sensor coordinate system are related on the basis of a specific (ego) vehicle.
9
9
10
-
//TODO: Should we add one or more sentences about the mathematical operations involved?
10
+
**Mathematical Definitions of Coordinate Transformations**
11
+
12
+
All vectors and matrices are noted with reference frame as a superscript index and the direction of translation as a supscript index. cite:[reuper2020]
13
+
The translation direction is from the first index to the second index (src: source coordinate system, trg: target coordinate system).
14
+
The vector latexmath:[\boldsymbol{v}^x] denotes the 3D position of an object in the coordinate frame latexmath:[x].
15
+
Vector latexmath:[\boldsymbol{t}] is the translation vector between two coordinate systems with the described indices for reference frame and direction.
16
+
The angles yaw latexmath:[\psi] around the z-axis, pitch latexmath:[\theta] around the y-axis and roll latexmath:[\phi] around the x-axis are defined in a right handed coordinate system according to DIN ISO 8855:2013 cite:[iso8855].
17
+
The sign of the angles corresponds to the direction of the transformation.
18
+
19
+
Transformation from source latexmath:[src] to target latexmath:[trg] coordinates:
Resulting rotation matrix between object and host: latexmath:[\boldsymbol{R}_{object}^{src}(\boldsymbol{R}_{ego}^{src})^{T}] +
75
+
76
+
To transform from world coordinates into vehicle coordinates and back use the formulas from above with the world coordinates frame latexmath:[w] as source system latexmath:[src] and vehicle coordinates frame latexmath:[v] as target system latexmath:[trg].
77
+
To transform from world coordinates into vehicle coordinates and back use the formulas from above with the vehicle coordinates frame latexmath:[v] as source system latexmath:[src] and sensor coordinates frame latexmath:[s] as target system latexmath:[trg].
0 commit comments