Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
p x
earlywarning
Commits
a92de540
Commit
a92de540
authored
Aug 08, 2025
by
p x
Browse files
增加一些注释
parent
0f13eb44
Changes
8
Show whitespace changes
Inline
Side-by-side
src/main/java/com/cusc/adas/v2x/clouddecision/dto/RSISDetailDto.java
View file @
a92de540
...
@@ -51,6 +51,11 @@ public class RSISDetailDto {
...
@@ -51,6 +51,11 @@ public class RSISDetailDto {
private
String
userdefinedData
;
private
String
userdefinedData
;
public
PositionDto
getEventPosition
()
{
return
eventPosition
;
}
public
int
getEventType
()
{
public
int
getEventType
()
{
return
eventType
;
return
eventType
;
}
}
...
...
src/main/java/com/cusc/adas/v2x/clouddecision/dto/SpeedLimitDto.java
View file @
a92de540
...
@@ -9,7 +9,7 @@ public class SpeedLimitDto {
...
@@ -9,7 +9,7 @@ public class SpeedLimitDto {
//车道编 号
//车道编 号
private
short
laneId
;
private
short
laneId
;
//限速值
//限速值
km/h
private
short
speedLimit
;
private
short
speedLimit
;
public
short
getSpeedLimit
()
{
public
short
getSpeedLimit
()
{
...
...
src/main/java/com/cusc/adas/v2x/clouddecision/vo/RSISDetail.java
View file @
a92de540
package
com.cusc.adas.v2x.clouddecision.vo
;
package
com.cusc.adas.v2x.clouddecision.vo
;
import
java.util.List
;
import
com.cusc.adas.v2x.utils.FieldDef
;
import
com.cusc.adas.v2x.utils.FieldDef
;
import
com.cusc.adas.v2x.utils.OffsetDef
;
import
com.cusc.adas.v2x.utils.OffsetDef
;
import
com.cusc.adas.v2x.utils.Order
;
import
com.cusc.adas.v2x.utils.Order
;
...
@@ -10,8 +8,6 @@ import com.cusc.adas.v2x.vo.Position;
...
@@ -10,8 +8,6 @@ import com.cusc.adas.v2x.vo.Position;
/**
/**
* 通用 RSI 预警中交通事件和交通标志信息
* 通用 RSI 预警中交通事件和交通标志信息
* @author huangml
*
*/
*/
public
class
RSISDetail
{
public
class
RSISDetail
{
...
@@ -23,7 +19,7 @@ public class RSISDetail {
...
@@ -23,7 +19,7 @@ public class RSISDetail {
@Order
(
2
)
@Order
(
2
)
@FieldDef
(
type
=
"TIMESTAMP"
,
isArray
=
false
,
length
=
8
)
@FieldDef
(
type
=
"TIMESTAMP"
,
isArray
=
false
,
length
=
8
)
private
long
timestamp
;
private
long
timestamp
;
//交通事件位置 点
//交通事件位置 点
用来给地图画
@Order
(
3
)
@Order
(
3
)
private
Position
eventPosition
;
private
Position
eventPosition
;
...
...
src/main/java/com/cusc/adas/v2x/dto/PositionDto.java
View file @
a92de540
package
com.cusc.adas.v2x.dto
;
package
com.cusc.adas.v2x.dto
;
import
com.cusc.adas.v2x.utils.Order
;
public
class
PositionDto
{
public
class
PositionDto
{
//经度
//经度
@Order
(
1
)
private
double
longitude
;
private
double
longitude
;
//纬度
//纬度
@Order
(
2
)
private
double
latitude
;
private
double
latitude
;
//高程 单位米
//高程 单位米
@Order
(
3
)
private
double
elevation
;
private
double
elevation
;
public
double
getLongitude
()
{
public
double
getLongitude
()
{
...
...
src/main/java/com/cusc/adas/v2x/selfdefine/dto/SelfDefineDetailDto.java
View file @
a92de540
...
@@ -9,7 +9,7 @@ import com.cusc.adas.v2x.utils.Order;
...
@@ -9,7 +9,7 @@ import com.cusc.adas.v2x.utils.Order;
*/
*/
public
class
SelfDefineDetailDto
{
public
class
SelfDefineDetailDto
{
//RV远车id
//RV远车id
用于让地图变红
private
String
rvVehicleId
;
private
String
rvVehicleId
;
//预警类型
//预警类型
...
...
src/main/java/com/cusc/adas/v2x/selfdefine/vo/SelfDefineDetail.java
View file @
a92de540
...
@@ -27,7 +27,7 @@ public class SelfDefineDetail {
...
@@ -27,7 +27,7 @@ public class SelfDefineDetail {
@Order
(
4
)
@Order
(
4
)
private
Position
location
;
private
Position
location
;
//主车速度
//主车速度
0.01 m/s
@Order
(
5
)
@Order
(
5
)
@OffsetDef
(
value
=
0.036
)
@OffsetDef
(
value
=
0.036
)
private
int
speed
;
private
int
speed
;
...
@@ -41,7 +41,7 @@ public class SelfDefineDetail {
...
@@ -41,7 +41,7 @@ public class SelfDefineDetail {
@Order
(
7
)
@Order
(
7
)
private
Position
rvLocation
;
private
Position
rvLocation
;
//RV远车速度
//RV远车速度
单位:0.01 m/s
@Order
(
8
)
@Order
(
8
)
@OffsetDef
(
value
=
0.036
)
@OffsetDef
(
value
=
0.036
)
private
int
rvSpeed
;
private
int
rvSpeed
;
...
@@ -55,7 +55,7 @@ public class SelfDefineDetail {
...
@@ -55,7 +55,7 @@ public class SelfDefineDetail {
@Order
(
10
)
@Order
(
10
)
private
short
level
;
private
short
level
;
//预警距离
//预警距离
,自车与远车的距离,单位:cm
@Order
(
11
)
@Order
(
11
)
@OffsetDef
(
value
=
0.01
)
@OffsetDef
(
value
=
0.01
)
private
int
distance
;
private
int
distance
;
...
...
src/main/java/com/cusc/adas/v2x/selfdefine/vo/SelfDefineMessageBody.java
View file @
a92de540
...
@@ -5,7 +5,7 @@ import com.cusc.adas.v2x.utils.Order;
...
@@ -5,7 +5,7 @@ import com.cusc.adas.v2x.utils.Order;
/***8.10.4 数据结构及定义**/
/***8.10.4 数据结构及定义**/
public
class
SelfDefineMessageBody
<
T
>
{
public
class
SelfDefineMessageBody
<
T
>
{
//车辆编号
//车辆编号
和感知车ptcid 对应
@Order
(
1
)
@Order
(
1
)
@FieldDef
(
type
=
"BYTE"
,
isArray
=
true
,
length
=
8
)
@FieldDef
(
type
=
"BYTE"
,
isArray
=
true
,
length
=
8
)
private
String
vehicleId
;
private
String
vehicleId
;
...
...
src/main/java/com/cusc/adas/v2x/vo/Position.java
View file @
a92de540
...
@@ -4,15 +4,15 @@ import com.cusc.adas.v2x.utils.OffsetDef;
...
@@ -4,15 +4,15 @@ import com.cusc.adas.v2x.utils.OffsetDef;
import
com.cusc.adas.v2x.utils.Order
;
import
com.cusc.adas.v2x.utils.Order
;
public
class
Position
{
public
class
Position
{
//经度
//经度
[0..3600000000],经度,单位:1e-7 °
@Order
(
1
)
@Order
(
1
)
@OffsetDef
(
value
=
0.0000001
,
minValidLength
=
10
)
@OffsetDef
(
value
=
0.0000001
,
minValidLength
=
10
)
private
long
longitude
;
private
long
longitude
;
//纬度
//纬度
[0..1800000000],纬度,单位:1e-7 °
@Order
(
2
)
@Order
(
2
)
@OffsetDef
(
value
=
0.00000001
,
minValidLength
=
10
)
@OffsetDef
(
value
=
0.00000001
,
minValidLength
=
10
)
private
long
latitude
;
private
long
latitude
;
//高程 单位分米
//高程 单位分米
0xFFFFFFFF 表示缺省
@Order
(
3
)
@Order
(
3
)
@OffsetDef
(
value
=
0.1
)
@OffsetDef
(
value
=
0.1
)
private
long
elevation
;
private
long
elevation
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment