提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
4 |
import com.iailab.netsdk.lib.enumeration.EM_DETECT_SENSOR_TYPE; |
|
5 |
import com.iailab.netsdk.lib.enumeration.EM_VEHICLEINOUT_CAR_TYPE; |
|
6 |
|
|
7 |
import java.util.Arrays; |
|
8 |
|
|
9 |
/** |
|
10 |
* 车辆信息 |
|
11 |
* |
|
12 |
* @author : 47040 |
|
13 |
* @since : Created in 2020/12/17 11:54 |
|
14 |
*/ |
|
15 |
public class NET_VEHICLE_OBJECT extends NetSDKLib.SdkStructure { |
|
16 |
/** |
|
17 |
* 物体ID |
|
18 |
*/ |
|
19 |
public int nObjectID; |
|
20 |
/** |
|
21 |
* 车速,单位km/h |
|
22 |
*/ |
|
23 |
public int nSpeed; |
|
24 |
/** |
|
25 |
* 物体类型 Vehicle NonMotor Plate |
|
26 |
*/ |
|
27 |
public byte[] szObjectType = new byte[16]; |
|
28 |
/** |
|
29 |
* 物体类型中的子类别 {@link NetSDKLib.EM_CATEGORY_TYPE} |
|
30 |
*/ |
|
31 |
public int emSubObject; |
|
32 |
/** |
|
33 |
* 物理车道号 |
|
34 |
*/ |
|
35 |
public int nLane; |
|
36 |
/** |
|
37 |
* 自定义车道号 |
|
38 |
*/ |
|
39 |
public int nRoadwayNumber; |
|
40 |
/** |
|
41 |
* 探测物体的传感器类型 {@link EM_DETECT_SENSOR_TYPE} |
|
42 |
*/ |
|
43 |
public int emSensorType; |
|
44 |
/** |
|
45 |
* 物体雷达和视频融合ID |
|
46 |
*/ |
|
47 |
public int nObjectRVID; |
|
48 |
/** |
|
49 |
* 物体的雷达ID |
|
50 |
*/ |
|
51 |
public int nObjectRID; |
|
52 |
/** |
|
53 |
* 行驶方向"Approach"-上行,即车辆离设备部署点越来越近; "Leave"-下行,即车辆离设备部署点越来越远,第二和第三个参数分别代表上行和下行的两个地点 |
|
54 |
*/ |
|
55 |
public NET_VEHICLE_DRIVING_DIRECTION_INFO[] szDrivingDirection = new NET_VEHICLE_DRIVING_DIRECTION_INFO[3]; |
|
56 |
/** |
|
57 |
* 车牌号码 |
|
58 |
*/ |
|
59 |
public byte[] szPlateNumber = new byte[32]; |
|
60 |
/** |
|
61 |
* 车牌颜色 |
|
62 |
*/ |
|
63 |
public byte[] szPlateColor = new byte[16]; |
|
64 |
/** |
|
65 |
* 车辆经度 |
|
66 |
*/ |
|
67 |
public double dbLongitude; |
|
68 |
/** |
|
69 |
* 车辆纬度 |
|
70 |
*/ |
|
71 |
public double dbLatitude; |
|
72 |
/** |
|
73 |
* 车身颜色 |
|
74 |
*/ |
|
75 |
public byte[] szCarColor = new byte[16]; |
|
76 |
/** |
|
77 |
* 车辆类型 {@link EM_VEHICLEINOUT_CAR_TYPE} |
|
78 |
*/ |
|
79 |
public int emCarType; |
|
80 |
/** |
|
81 |
* 车辆驶入驶出虚拟线圈的状态 {@link NetSDKLib.NET_FLOWSTAT_DIRECTION} |
|
82 |
*/ |
|
83 |
public int emVirtualCoilDirection; |
|
84 |
/** |
|
85 |
* 距离停车线距离 |
|
86 |
*/ |
|
87 |
public double dbDistanceToStop; |
|
88 |
/** |
|
89 |
* 车辆与所有车道的中心点(中心点在设备所处位置,且垂直于车道方向的直线上),X轴方向(垂直于车道方向)的距离 |
|
90 |
*/ |
|
91 |
public double dbCarX; |
|
92 |
/** |
|
93 |
* 车辆与所有车道的中心点(中心点在设备所处位置,且垂直于车道方向的直线上),Y轴方向(平行于车道方向)的距离 |
|
94 |
*/ |
|
95 |
public double dbCarY; |
|
96 |
/** |
|
97 |
* 车辆与所有车道的中心点(中心点在设备所处位置且垂直于车道方向的直线上)的角度; |
|
98 |
*/ |
|
99 |
public double dbCarAngle; |
|
100 |
/** |
|
101 |
* 物体是否在视频车道内, 0:未知, 1:物体不在视频车道内, 2:物体在视频车道内 |
|
102 |
*/ |
|
103 |
public int nObjectInVideoLane; |
|
104 |
/** |
|
105 |
* 目标物体实际行驶方向 0-未知,1-直行,2-左转,3-右转,4-掉头 |
|
106 |
*/ |
|
107 |
public int nDirection; |
|
108 |
/** |
|
109 |
* 目标横向运动速度 |
|
110 |
*/ |
|
111 |
public float fSpeedX; |
|
112 |
/** |
|
113 |
* 目标纵向运动速度 |
|
114 |
*/ |
|
115 |
public float fSpeedY; |
|
116 |
/** |
|
117 |
* 航向角 |
|
118 |
*/ |
|
119 |
public double dbHeadingAngle; |
|
120 |
/** |
|
121 |
*车身坐标,包围盒0~8191相对坐标 |
|
122 |
*/ |
|
123 |
public NET_RECT stuCarBoundingBox=new NET_RECT(); |
|
124 |
/** |
|
125 |
* 保留字节 |
|
126 |
*/ |
|
127 |
public byte[] byReserverd = new byte[216]; |
|
128 |
|
|
129 |
public NET_VEHICLE_OBJECT() { |
|
130 |
for (int i = 0; i < szDrivingDirection.length; i++) { |
|
131 |
szDrivingDirection[i] = new NET_VEHICLE_DRIVING_DIRECTION_INFO(); |
|
132 |
} |
|
133 |
} |
|
134 |
|
|
135 |
@Override |
|
136 |
public String toString() { |
|
137 |
return "NET_VEHICLE_OBJECT{" + |
|
138 |
"nObjectID=" + nObjectID + |
|
139 |
", nSpeed=" + nSpeed + |
|
140 |
", szObjectType=" + new String(szObjectType).trim() + |
|
141 |
", emSubObject=" + emSubObject + |
|
142 |
", nLane=" + nLane + |
|
143 |
", nRoadwayNumber=" + nRoadwayNumber + |
|
144 |
", emSensorType=" + emSensorType + |
|
145 |
", nObjectRVID=" + nObjectRVID + |
|
146 |
", nObjectRID=" + nObjectRID + |
|
147 |
", szDrivingDirection=" + Arrays.toString(szDrivingDirection).trim() + |
|
148 |
", szPlateNumber=" + new String(szPlateNumber).trim() + |
|
149 |
", szPlateColor=" + new String(szPlateColor).trim() + |
|
150 |
", dbLongitude=" + dbLongitude + |
|
151 |
", dbLatitude=" + dbLatitude + |
|
152 |
", szCarColor=" + new String(szCarColor).trim() + |
|
153 |
", emCarType=" + emCarType + |
|
154 |
", emVirtualCoilDirection=" + emVirtualCoilDirection + |
|
155 |
", dbDistanceToStop=" + dbDistanceToStop + |
|
156 |
", dbCarX=" + dbCarX + |
|
157 |
", dbCarY=" + dbCarY + |
|
158 |
", dbCarAngle=" + dbCarAngle + |
|
159 |
", nObjectInVideoLane=" + nObjectInVideoLane + |
|
160 |
", nDirection=" + nDirection + |
|
161 |
", fSpeedX=" + fSpeedX + |
|
162 |
", fSpeedY=" + fSpeedY + |
|
163 |
", dbHeadingAngle=" + dbHeadingAngle + |
|
164 |
", stuCarBoundingBox=" + stuCarBoundingBox.toString() + |
|
165 |
'}'; |
|
166 |
} |
|
167 |
|
|
168 |
} |