locationfailed.go 274 B

1234567891011121314151617181920
  1. package main
  2. import (
  3. "cicv-data-closedloop/pji_msgs"
  4. )
  5. func Topic() string {
  6. return "/locate_info"
  7. }
  8. func Label() string {
  9. return "locationfailed"
  10. }
  11. func Rule(data *pji_msgs.LocateInfo) string {
  12. if data.LocateStatus == 0 {
  13. return "locationfailed"
  14. }
  15. return ""
  16. }