File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 3
3
<launch >
4
4
<!-- Console launch prefix -->
5
5
<arg name =" launch_prefix" default =" " />
6
+ <arg name =" image" default =" /camera/rgb/image_raw" />
6
7
7
8
<!-- Config and weights folder. -->
8
9
<arg name =" yolo_weights_path" default =" $(find darknet_ros)/yolo_network_config/weights" />
20
21
<node pkg =" darknet_ros" type =" darknet_ros" name =" darknet_ros" output =" screen" launch-prefix =" $(arg launch_prefix)" >
21
22
<param name =" weights_path" value =" $(arg yolo_weights_path)" />
22
23
<param name =" config_path" value =" $(arg yolo_config_path)" />
24
+ <remap from =" camera/rgb/image_raw" to =" $(arg image)" />
23
25
</node >
24
26
25
27
<!-- <node name="republish" type="republish" pkg="image_transport" output="screen" args="compressed in:=/front_camera/image_raw raw out:=/camera/image_raw" /> -->
Original file line number Diff line number Diff line change 4
4
5
5
<!-- Use YOLOv3 -->
6
6
<arg name =" network_param_file" default =" $(find darknet_ros)/config/yolov3.yaml" />
7
+ <arg name =" image" default =" camera/rgb/image_raw" />
7
8
8
9
9
10
<!-- Include main launch file -->
10
11
<include file =" $(find darknet_ros)/launch/darknet_ros.launch" >
11
12
<arg name =" network_param_file" value =" $(arg network_param_file)" />
13
+ <arg name =" image" value =" $(arg image)" />
12
14
</include >
13
15
14
16
</launch >
Original file line number Diff line number Diff line change @@ -614,6 +614,7 @@ void *YoloObjectDetector::publishInThread()
614
614
int ymax = (rosBoxes_[i][j].y + rosBoxes_[i][j].h / 2 ) * frameHeight_;
615
615
616
616
boundingBox.Class = classLabels_[i];
617
+ boundingBox.id = i;
617
618
boundingBox.probability = rosBoxes_[i][j].prob ;
618
619
boundingBox.xmin = xmin;
619
620
boundingBox.ymin = ymin;
Original file line number Diff line number Diff line change 1
- string Class
2
1
float64 probability
3
2
int64 xmin
4
3
int64 ymin
5
4
int64 xmax
6
5
int64 ymax
7
-
6
+ int16 id
7
+ string Class
You can’t perform that action at this time.
0 commit comments