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
9b886b4e
Commit
9b886b4e
authored
Aug 21, 2025
by
p x
Browse files
解析字符串
parent
c717a8f4
Changes
5
Show whitespace changes
Inline
Side-by-side
src/main/java/com/cusc/adas/v2x/clouddecision/dto/PathPathDto.java
View file @
9b886b4e
...
...
@@ -44,4 +44,8 @@ public class PathPathDto {
public
List
<
Position2DDto
>
getPointsPos
()
{
return
pointsPos
;
}
public
short
getPathType
()
{
return
pathType
;
}
}
src/main/java/com/cusc/adas/v2x/clouddecision/vo/PathPath.java
View file @
9b886b4e
...
...
@@ -23,7 +23,7 @@ public class PathPath {
//关联 GNSS 点 数量
@Order
(
1
)
private
short
pointsNum
;
// 服务器给的4 我1
//关联 GNSS 点 位置
//关联 GNSS 点 位置
具体颜色的集合
@Order
(
2
)
@RefNumFlag
(
value
=
"pointsNum"
)
private
List
<
Position2D
>
pointsPos
;
...
...
src/main/java/com/cusc/adas/v2x/clouddecision/vo/RSISDetail.java
View file @
9b886b4e
...
...
@@ -40,31 +40,31 @@ public class RSISDetail {
@Order
(
7
)
private
int
referenceLinksNum
;
//关联路段数量
@Order
(
8
)
private
RelSetp
referenceLinks
;
//关联路段数量
没数据
//
@Order(8)
//
private RelSetp referenceLinks;
//优先级
@Order
(
9
)
@Order
(
8
)
private
short
priority
;
//交通事件/标 志作用中心线 坐标点
@Order
(
10
)
@Order
(
9
)
private
Position
alertPath
;
//交通标志/事 件作用中心线 范围半径
@Order
(
1
1
)
@Order
(
1
0
)
@OffsetDef
(
value
=
0.1
)
private
int
pathRadius
;
//事件状态
@Order
(
1
2
)
@Order
(
1
1
)
private
short
status
;
//自定义内容长度
@Order
(
1
3
)
@Order
(
1
2
)
private
int
userdefinedDataLength
;
//这里用来拿到人的感知物id
@Order
(
1
4
)
//自定义内容
@Order
(
1
3
)
//自定义内容
此处代表人的ptcid
@RefNumFlag
(
value
=
"userdefinedDataLength"
)
private
String
userdefinedData
;
...
...
src/main/java/com/cusc/adas/v2x/clouddecision/vo/RoutePlan.java
View file @
9b886b4e
...
...
@@ -47,7 +47,7 @@ public class RoutePlan {
@Order
(
8
)
@NumFlag
private
int
dataLen
;
//长度为 N 个字节,其中 N 为路线规划数据长度,路线规划数据结构内
//长度为 N 个字节,其中 N 为路线规划数据长度,路线规划数据结构内
包含多种颜色的集合
@Order
(
9
)
@RefNumFlag
(
value
=
"dataLen"
)
private
List
<
PathPath
>
pathList
;
...
...
src/main/java/com/cusc/adas/v2x/utils/Parse.java
View file @
9b886b4e
...
...
@@ -379,9 +379,17 @@ public class Parse {
data
.
readBytes
(
by
);
String
str
=
new
String
(
by
,
StandardCharsets
.
UTF_8
);
field
.
set
(
t
,
str
);
}
else
if
(
type
==
String
.
class
&&
refNumFlag
!=
null
)
{
Field
tField
=
t
.
getClass
().
getDeclaredField
(
refNumFlag
.
value
());
tField
.
setAccessible
(
true
);
int
size
=
(
int
)
tField
.
get
(
t
);
byte
[]
by
=
new
byte
[
size
];
data
.
readBytes
(
by
);
String
str
=
new
String
(
by
,
StandardCharsets
.
UTF_8
);
field
.
set
(
t
,
str
);
}
else
if
(
type
==
short
.
class
)
{
field
.
set
(
t
,
data
.
readUnsignedByte
());
int
a
=
0
;
int
a
=
0
;
}
else
if
(
type
==
int
.
class
)
{
field
.
set
(
t
,
data
.
readUnsignedShort
());
}
else
if
(
type
==
long
.
class
&&
fieldDef
==
null
)
{
...
...
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