sensor.go 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package entity
  2. type Sensor struct {
  3. SensorName string `json:"sensor_name"` // 传感器名称
  4. SensorNear float64 `json:"sensor_near"` // 盲区距离
  5. SensorFar float64 `json:"sensor_far"` // 探测距离
  6. SensorX float64 `json:"sensor_x"` // 传感器横向偏移量(x轴)
  7. SensorY float64 `json:"sensor_y"` // 传感器纵向偏移量(y轴)
  8. SensorZ float64 `json:"sensor_z"` // 传感器安装高度(z轴)
  9. SensorH float64 `json:"sensor_h"` // 传感器横摆角
  10. SensorP float64 `json:"sensor_p"` // 传感器俯仰角
  11. SensorR float64 `json:"sensor_r"` // 传感器横滚角
  12. }
  13. // SensorParam 从数据闭环平台接收到的参数,通用
  14. type SensorParam struct {
  15. Sensor
  16. SensorForH float64 `json:"sensor_fovH"` // 水平视场角
  17. SensorForV float64 `json:"sensor_fovV"` // 垂直视场角
  18. SensorForHOffset float64 `json:"sensor_fovH_offset"` // 水平视场角偏移量
  19. SensorForVOffset float64 `json:"sensor_fovV_offset"` // 垂直视场角偏移量
  20. }
  21. // SensorCamera 摄像头
  22. type SensorCamera struct {
  23. Sensor
  24. SensorForH float64 `json:"sensor_fovH"` // 水平现场角
  25. SensorForV float64 `json:"sensor_fovV"` // 垂直现场角
  26. SensorResolution string `json:"sensor_resolution"` // 分辨率
  27. SensorFrameRate float64 `json:"sensor_frameRate"` // 帧率
  28. }
  29. // SensorOgt 完美传感器
  30. type SensorOgt struct {
  31. Sensor
  32. SensorForHLeft float64 `json:"sensor_fovHLeft"` // 水平现场角左
  33. SensorForHRight float64 `json:"sensor_fovHRight"` // 水平现场角右
  34. SensorForHTop float64 `json:"sensor_fovVTop"` // 垂直现场角顶
  35. SensorForHBottom float64 `json:"sensor_fovVBottom"` // 垂直现场角底
  36. SensorFilter string `json:"sensor_filter"` // 目标物筛选序列(0,1,2)
  37. SensorDisplay bool `json:"sensor_display"` // 显示目标物
  38. SensorMaxObjects int `json:"sensor_maxObjects"` // 最大目标物个数
  39. SensorPort int `json:"sensor_port"` // 端口
  40. }