Apollo 10.0
自动驾驶开放平台
geometry.proto
浏览该文件的文档.
1syntax = "proto2";
2
3package apollo.common;
4
5// A point in the map reference frame. The map defines an origin, whose
6// coordinate is (0, 0, 0).
7// Most modules, including localization, perception, and prediction, generate
8// results based on the map reference frame.
9// Currently, the map uses Universal Transverse Mercator (UTM) projection. See
10// the link below for the definition of map origin.
11// https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system
12// The z field of PointENU can be omitted. If so, it is a 2D location and we do
13// not care its height.
14message PointENU {
15 optional double x = 1 [default = nan]; // East from the origin, in meters.
16 optional double y = 2 [default = nan]; // North from the origin, in meters.
17 optional double z = 3 [default = 0.0]; // Up from the WGS-84 ellipsoid, in
18 // meters.
19}
20
21// A point in the global reference frame. Similar to PointENU, PointLLH allows
22// omitting the height field for representing a 2D location.
23message PointLLH {
24 // Longitude in degrees, ranging from -180 to 180.
25 optional double lon = 1 [default = nan];
26 // Latitude in degrees, ranging from -90 to 90.
27 optional double lat = 2 [default = nan];
28 // WGS-84 ellipsoid height in meters.
29 optional double height = 3 [default = 0.0];
30}
31
32// A general 2D point. Its meaning and units depend on context, and must be
33// explained in comments.
34message Point2D {
35 optional double x = 1 [default = nan];
36 optional double y = 2 [default = nan];
37}
38
39// A general 3D point. Its meaning and units depend on context, and must be
40// explained in comments.
41message Point3D {
42 optional double x = 1 [default = nan];
43 optional double y = 2 [default = nan];
44 optional double z = 3 [default = nan];
45}
46
47// A unit quaternion that represents a spatial rotation. See the link below for
48// details.
49// https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation
50// The scalar part qw can be omitted. In this case, qw should be calculated by
51// qw = sqrt(1 - qx * qx - qy * qy - qz * qz).
52message Quaternion {
53 optional double qx = 1 [default = nan];
54 optional double qy = 2 [default = nan];
55 optional double qz = 3 [default = nan];
56 optional double qw = 4 [default = nan];
57}
58
59// A general polygon, points are counter clockwise
60message Polygon {
61 repeated Point3D point = 1;
62}
syntax
Definition geometry.proto:1