map_geometry.proto 723 B

12345678910111213141516171819202122232425262728293031
  1. syntax = "proto2";
  2. import "modules/common_msgs/basic_msgs/geometry.proto";
  3. package apollo.hdmap;
  4. // Polygon, not necessary convex.
  5. message Polygon {
  6. repeated apollo.common.PointENU point = 1;
  7. }
  8. // Straight line segment.
  9. message LineSegment {
  10. repeated apollo.common.PointENU point = 1;
  11. }
  12. // Generalization of a line.
  13. message CurveSegment {
  14. oneof curve_type {
  15. LineSegment line_segment = 1;
  16. }
  17. optional double s = 6; // start position (s-coordinate)
  18. optional apollo.common.PointENU start_position = 7;
  19. optional double heading = 8; // start orientation
  20. optional double length = 9;
  21. }
  22. // An object similar to a line but that need not be straight.
  23. message Curve {
  24. repeated CurveSegment segment = 1;
  25. }