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 33<launch >
44 <!-- Console launch prefix -->
55 <arg name =" launch_prefix" default =" " />
6+ <arg name =" image" default =" /camera/rgb/image_raw" />
67
78 <!-- Config and weights folder. -->
89 <arg name =" yolo_weights_path" default =" $(find darknet_ros)/yolo_network_config/weights" />
2021 <node pkg =" darknet_ros" type =" darknet_ros" name =" darknet_ros" output =" screen" launch-prefix =" $(arg launch_prefix)" >
2122 <param name =" weights_path" value =" $(arg yolo_weights_path)" />
2223 <param name =" config_path" value =" $(arg yolo_config_path)" />
24+ <remap from =" camera/rgb/image_raw" to =" $(arg image)" />
2325 </node >
2426
2527 <!-- <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 44
55 <!-- Use YOLOv3 -->
66 <arg name =" network_param_file" default =" $(find darknet_ros)/config/yolov3.yaml" />
7+ <arg name =" image" default =" camera/rgb/image_raw" />
78
89
910 <!-- Include main launch file -->
1011 <include file =" $(find darknet_ros)/launch/darknet_ros.launch" >
1112 <arg name =" network_param_file" value =" $(arg network_param_file)" />
13+ <arg name =" image" value =" $(arg image)" />
1214 </include >
1315
1416</launch >
Original file line number Diff line number Diff line change @@ -614,6 +614,7 @@ void *YoloObjectDetector::publishInThread()
614614 int ymax = (rosBoxes_[i][j].y + rosBoxes_[i][j].h / 2 ) * frameHeight_;
615615
616616 boundingBox.Class = classLabels_[i];
617+ boundingBox.id = i;
617618 boundingBox.probability = rosBoxes_[i][j].prob ;
618619 boundingBox.xmin = xmin;
619620 boundingBox.ymin = ymin;
Original file line number Diff line number Diff line change 1- string Class
21float64 probability
32int64 xmin
43int64 ymin
54int64 xmax
65int64 ymax
7-
6+ int16 id
7+ string Class
You can’t perform that action at this time.
0 commit comments