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
1e5f7c1d
Commit
1e5f7c1d
authored
Jun 12, 2025
by
yangxue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change type of pub topic
parent
6a19c2fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
multi_yolov5m.yaml
src/camera_bev_infer/configs/weights/multi_yolov5m.yaml
+2
-2
sensor_manager.cpp
src/camera_bev_infer/src/sensor_manager.cpp
+4
-3
No files found.
src/camera_bev_infer/configs/weights/multi_yolov5m.yaml
View file @
1e5f7c1d
...
@@ -66,8 +66,8 @@ units:
...
@@ -66,8 +66,8 @@ units:
outputNames
:
[
tracked_instances
]
outputNames
:
[
tracked_instances
]
frame_rate
:
10
frame_rate
:
10
track_buffer
:
30
track_buffer
:
30
track_thresh
:
0.15
track_thresh
:
0.15
# threshold for high-confidence detections
high_thresh
:
0.2
high_thresh
:
0.2
# threshold for new track creation
match_thresh
:
0.6
match_thresh
:
0.6
init_frames
:
2
init_frames
:
2
out_lost_threshold
:
0
out_lost_threshold
:
0
...
...
src/camera_bev_infer/src/sensor_manager.cpp
View file @
1e5f7c1d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
* @Date: 2023-09-03 02:18:07
* @Date: 2023-09-03 02:18:07
* @email: xin.wang@waytous.com
* @email: xin.wang@waytous.com
* @LastEditors: yangxue xue.yang@waytous.com
* @LastEditors: yangxue xue.yang@waytous.com
* @LastEditTime: 2025-0
4-18 01:48:25
* @LastEditTime: 2025-0
6-12 08:21:08
*/
*/
...
@@ -56,7 +56,7 @@ sensorManager::sensorManager(ros::NodeHandle& nodehandle, ImageInferNodeParam& p
...
@@ -56,7 +56,7 @@ sensorManager::sensorManager(ros::NodeHandle& nodehandle, ImageInferNodeParam& p
// 初始化订阅、发布话题
// 初始化订阅、发布话题
image_subscriber_
=
nodehandle
.
subscribe
<
sensor_msgs
::
Image
>
(
param
.
rgb_sub_topic_name
,
1
,
boost
::
bind
(
&
sensorManager
::
updateImage
,
this
,
_1
));
image_subscriber_
=
nodehandle
.
subscribe
<
sensor_msgs
::
Image
>
(
param
.
rgb_sub_topic_name
,
1
,
boost
::
bind
(
&
sensorManager
::
updateImage
,
this
,
_1
));
pointcloud_subscriber_
=
nodehandle
.
subscribe
<
sensor_msgs
::
PointCloud2
>
(
param
.
pointcloud_sub_topic_name
,
1
,
boost
::
bind
(
&
sensorManager
::
updatePointcloud
,
this
,
_1
));
pointcloud_subscriber_
=
nodehandle
.
subscribe
<
sensor_msgs
::
PointCloud2
>
(
param
.
pointcloud_sub_topic_name
,
1
,
boost
::
bind
(
&
sensorManager
::
updatePointcloud
,
this
,
_1
));
obj_publisher_
=
nodehandle
.
advertise
<
waytous_perception_msgs
::
Object
Track
Array
>
(
param
.
detection_pub_topic_name
,
1
);
obj_publisher_
=
nodehandle
.
advertise
<
waytous_perception_msgs
::
ObjectArray
>
(
param
.
detection_pub_topic_name
,
1
);
pub_thread_
=
new
boost
::
thread
(
boost
::
bind
(
&
sensorManager
::
publishDetection
,
this
));
pub_thread_
=
new
boost
::
thread
(
boost
::
bind
(
&
sensorManager
::
publishDetection
,
this
));
};
};
...
@@ -190,6 +190,7 @@ void sensorManager::publishDetection()
...
@@ -190,6 +190,7 @@ void sensorManager::publishDetection()
waytous_perception_msgs
::
ObjectTrackArray
obTrackFrame
;
waytous_perception_msgs
::
ObjectTrackArray
obTrackFrame
;
obTrackFrame
.
header
=
frame_ptr
->
sensor_header
;
obTrackFrame
.
header
=
frame_ptr
->
sensor_header
;
obTrackFrame
.
header
.
frame_id
=
"vehicle_link"
;
obTrackFrame
.
header
.
frame_id
=
"vehicle_link"
;
obFrame
.
header
=
obTrackFrame
.
header
;
// obTrackFrame.header.stamp = ros::Time(frame_ptr->timestamp_);
// obTrackFrame.header.stamp = ros::Time(frame_ptr->timestamp_);
int8_t
obj_id
=
0
;
int8_t
obj_id
=
0
;
...
@@ -312,7 +313,7 @@ void sensorManager::publishDetection()
...
@@ -312,7 +313,7 @@ void sensorManager::publishDetection()
obFrame
.
foreground_objects
.
emplace_back
(
ob
);
obFrame
.
foreground_objects
.
emplace_back
(
ob
);
obTrackFrame
.
object_track
.
emplace_back
(
obTrack
);
obTrackFrame
.
object_track
.
emplace_back
(
obTrack
);
}
}
obj_publisher_
.
publish
(
ob
Track
Frame
);
// obFrame or obTrackFrame
obj_publisher_
.
publish
(
obFrame
);
// obFrame or obTrackFrame
std
::
cout
<<
" onRun : "
<<
double
(
clock
()
-
start_
)
/
CLOCKS_PER_SEC
<<
"s. "
<<
"Detected Objects: "
std
::
cout
<<
" onRun : "
<<
double
(
clock
()
-
start_
)
/
CLOCKS_PER_SEC
<<
"s. "
<<
"Detected Objects: "
<<
obFrame
.
foreground_objects
.
size
()
<<
std
::
endl
;
//输出时间(单位:s)
<<
obFrame
.
foreground_objects
.
size
()
<<
std
::
endl
;
//输出时间(单位:s)
...
...
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