Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
E
event_src
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oscar
event_src
Commits
820494d5
Commit
820494d5
authored
Jan 09, 2023
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改速度计算位xy的平方和开方。
parent
0dd8f27c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
EventsRos.cpp
EventsRos.cpp
+1
-1
No files found.
EventsRos.cpp
View file @
820494d5
...
...
@@ -252,7 +252,7 @@ void EventsRos::TrackCallBackFunc(const jfxrosperceiver::det_tracking_arrayConst
obj
.
lon
=
item
.
Long
;
//车所在位置的经度
obj
.
heading
=
item
.
rot_y
;
//车运行的朝向,北为0,顺时针0-360
obj
.
id
=
item
.
obj_id
;
//物体id
obj
.
speed
=
sqrt
(
pow
(
item
.
v_x
,
2
)
+
pow
(
item
.
v_y
,
2
)
+
pow
(
item
.
v_z
,
2
)
);
//计算出车的速度
obj
.
speed
=
sqrt
(
pow
(
item
.
v_x
,
2
)
+
pow
(
item
.
v_y
,
2
));
//计算出车的速度
obj
.
acc_x
=
item
.
acc_x
;
obj
.
acc_y
=
item
.
acc_y
;
for
(
int
i
=
0
;
i
<
item
.
points
.
size
();
i
++
)
...
...
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