Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ros_camera_bev
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yangxue
ros_camera_bev
Commits
0d83deed
Commit
0d83deed
authored
Apr 08, 2025
by
yangxue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add header
parent
6c847f42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
sensor_manager.cpp
src/camera_bev_infer/src/sensor_manager.cpp
+9
-1
No files found.
src/camera_bev_infer/src/sensor_manager.cpp
View file @
0d83deed
...
...
@@ -5,7 +5,7 @@
* @Date: 2023-09-03 02:18:07
* @email: xin.wang@waytous.com
* @LastEditors: yangxue xue.yang@waytous.com
* @LastEditTime: 2025-04-0
7 08:57:20
* @LastEditTime: 2025-04-0
8 03:22:23
*/
...
...
@@ -184,6 +184,9 @@ void sensorManager::publishDetection()
waytous_perception_msgs
::
ObjectArray
obFrame
;
waytous_perception_msgs
::
ObjectTrackArray
obTrackFrame
;
obTrackFrame
.
header
=
frame_ptr
->
sensor_header
;
obTrackFrame
.
header
.
frame_id
=
infer_param
.
vis_frame_id
;
// obTrackFrame.header.stamp = ros::Time(frame_ptr->timestamp_);
int8_t
obj_id
=
0
;
for
(
auto
&
obj
:
vGrid
->
vInsObjs
)
...
...
@@ -194,6 +197,8 @@ void sensorManager::publishDetection()
}
waytous_perception_msgs
::
Object
ob
;
waytous_perception_msgs
::
ObjectTrack
obTrack
;
obTrack
.
header
.
frame_id
=
obTrackFrame
.
header
.
frame_id
;
obTrack
.
header
.
stamp
=
obTrackFrame
.
header
.
stamp
;
ob
.
sensor_type
=
waytous_perception_msgs
::
Object
::
SENSOR_CAMERA
;
obTrack
.
msgname
=
"camera"
;
...
...
@@ -239,6 +244,9 @@ void sensorManager::publishDetection()
ob
.
dimensions
.
z
=
1
;
// jsk_recognition_msgs/BoundingBox
obTrack
.
bounding_box
.
header
=
obTrackFrame
.
header
;
obTrack
.
bounding_box
.
header
.
frame_id
=
obTrackFrame
.
header
.
frame_id
;
obTrack
.
bounding_box
.
header
.
stamp
=
obTrackFrame
.
header
.
stamp
;
obTrack
.
bounding_box
.
pose
=
ob
.
pose
;
obTrack
.
bounding_box
.
dimensions
=
ob
.
dimensions
;
...
...
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