SignalLight.msg 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # This represents each lamps in signal light in a map.
  2. # COLOR_TYPES
  3. uint8 RED = 1
  4. uint8 GREEN = 2
  5. uint8 YELLOW = 3
  6. uint8 RED_FLASHING = 4
  7. uint8 GREEN_FLASHING = 5
  8. uint8 YELLOW_FLASHING = 6
  9. uint8 UNKOWN = 7
  10. # ARROW_TYPES
  11. uint8 NONE = 0
  12. uint8 UP = 1
  13. uint8 UP_RIGHT = 2
  14. uint8 RIGHT = 3
  15. uint8 DOWN_RIGHT = 4
  16. uint8 DOWN = 5
  17. uint8 DOWN_LEFT = 6
  18. uint8 LEFT = 7
  19. uint8 UP_LEFT = 8
  20. uint8 UNKNOWN = 9
  21. # Id of this SignalLight object. Must be uniqe among all SignalLight objects.
  22. int32 signal_light_id
  23. # Id of Signal object which this SignalLight object belongs to
  24. int32 signal_id
  25. # Id of point that represents the position of this lamp.
  26. int32 point_id
  27. # Horizontal direction which this SignalLight is facing in [deg].
  28. # Angle is calculated from North in clockwise direction.
  29. float64 horizontal_angle
  30. # Vertical direction which this SignalLight is facing in [deg].
  31. # Angle is calculated from vertical rising direction.
  32. float64 vertical_angle
  33. # Color of the lamp
  34. # Must be one of COLOR_TYPES
  35. int32 color_type
  36. # Direction of the arrow (if the lamp has direction)
  37. # Must be one of ARROW_TYPES
  38. int32 arrow_type