-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functions to publish segmentation masks, and update parameter
- Loading branch information
1 parent
01fde7c
commit 89968e2
Showing
4 changed files
with
208 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<launch> | ||
<arg name="yolo_model" default="yolov8n.pt"/> | ||
<arg name="publish_rate" default="10"/> | ||
<arg name="detection_topic" default="detection_result"/> | ||
<arg name="image_topic" default="kitti/camera_color_left/image_raw"/> | ||
<arg name="debug" default="true"/> | ||
<arg name="yolo_model" default="yolov8m-seg.pt"/> | ||
<arg name="input_topic" default="/kitti/camera_color_left/image_raw"/> | ||
<arg name="result_topic" default="/yolo_result"/> | ||
<arg name="result_image_topic" default="/yolo_image"/> | ||
<arg name="conf_thres" default="0.25"/> | ||
<arg name="iou_thres" default="0.45"/> | ||
<arg name="max_det" default="300"/> | ||
<arg name="tracker" default="bytetrack.yaml"/> | ||
<arg name="debug" default="true"/> | ||
<arg name="debug_conf" default="true"/> | ||
<arg name="debug_line_width" default="1"/> | ||
<arg name="debug_font_size" default="1"/> | ||
<arg name="debug_font" default="Arial.ttf"/> | ||
<arg name="debug_labels" default="true"/> | ||
<arg name="debug_boxes" default="true"/> | ||
<!-- Object detection node --> | ||
<arg name="device" default="cuda:0"/> | ||
<arg name="result_conf" default="true"/> | ||
<arg name="result_line_width" default="1"/> | ||
<arg name="result_font_size" default="1"/> | ||
<arg name="result_font" default="Arial.ttf"/> | ||
<arg name="result_labels" default="true"/> | ||
<arg name="result_boxes" default="true"/> | ||
|
||
<node pkg="ultralytics_ros" exec="tracker_node.py" output="screen"> | ||
<param name="yolo_model" value="$(var yolo_model)"/> | ||
<param name="publish_rate" value="$(var publish_rate)"/> | ||
<param name="detection_topic" value="$(var detection_topic)"/> | ||
<param name="image_topic" value="$(var image_topic)"/> | ||
<param name="input_topic" value="$(var input_topic)"/> | ||
<param name="result_topic" value="$(var result_topic)"/> | ||
<param name="result_image_topic" value="$(var result_image_topic)"/> | ||
<param name="conf_thres" value="$(var conf_thres)"/> | ||
<param name="iou_thres" value="$(var iou_thres)"/> | ||
<param name="max_det" value="$(var max_det)"/> | ||
<param name="tracker" value="$(var tracker)"/> | ||
<param name="debug" value="$(var debug)"/> | ||
<param name="debug_conf" value="$(var debug_conf)"/> | ||
<param name="debug_line_width" value="$(var debug_line_width)"/> | ||
<param name="debug_font_size" value="$(var debug_font_size)"/> | ||
<param name="debug_font" value="$(var debug_font)"/> | ||
<param name="debug_labels" value="$(var debug_labels)"/> | ||
<param name="debug_boxes" value="$(var debug_boxes)"/> | ||
<param name="result_conf" value="$(var result_conf)"/> | ||
<param name="result_line_width" value="$(var result_line_width)"/> | ||
<param name="result_font_size" value="$(var result_font_size)"/> | ||
<param name="result_font" value="$(var result_font)"/> | ||
<param name="result_labels" value="$(var result_labels)"/> | ||
<param name="result_boxes" value="$(var result_boxes)"/> | ||
<!--<param name="classes" value="0, 1, 2" value-sep=", "/>--> | ||
<param name="device" value="$(var device)"/> | ||
</node> | ||
<!-- Image view --> | ||
|
||
<node if="$(var debug)" pkg="image_view" exec="image_view" output="screen"> | ||
<remap from="image" to="debug_image"/> | ||
<remap from="image" to="$(var result_image_topic)"/> | ||
</node> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<launch> | ||
<arg name="yolo_model" default="yolov8n.pt"/> | ||
<arg name="publish_rate" default="10"/> | ||
<arg name="detection_topic" default="detection_result"/> | ||
<arg name="image_topic" default="image_raw"/> | ||
<arg name="debug" default="false"/> | ||
<arg name="yolo_model" default="yolov8m-seg.pt"/> | ||
<arg name="input_topic" default="/image_raw"/> | ||
<arg name="result_topic" default="/yolo_result"/> | ||
<arg name="result_image_topic" default="/yolo_image"/> | ||
<arg name="conf_thres" default="0.25"/> | ||
<arg name="iou_thres" default="0.45"/> | ||
<arg name="max_det" default="300"/> | ||
<arg name="tracker" default="bytetrack.yaml"/> | ||
<arg name="debug" default="false"/> | ||
<arg name="debug_conf" default="true"/> | ||
<arg name="debug_line_width" default="1"/> | ||
<arg name="debug_font_size" default="1"/> | ||
<arg name="debug_font" default="Arial.ttf"/> | ||
<arg name="debug_labels" default="true"/> | ||
<arg name="debug_boxes" default="true"/> | ||
<!-- Object detection node --> | ||
<arg name="device" default="cuda:0"/> | ||
<arg name="result_conf" default="true"/> | ||
<arg name="result_line_width" default="1"/> | ||
<arg name="result_font_size" default="1"/> | ||
<arg name="result_font" default="Arial.ttf"/> | ||
<arg name="result_labels" default="true"/> | ||
<arg name="result_boxes" default="true"/> | ||
|
||
<node pkg="ultralytics_ros" exec="tracker_node.py" output="screen"> | ||
<param name="yolo_model" value="$(var yolo_model)"/> | ||
<param name="publish_rate" value="$(var publish_rate)"/> | ||
<param name="detection_topic" value="$(var detection_topic)"/> | ||
<param name="image_topic" value="$(var image_topic)"/> | ||
<param name="input_topic" value="$(var input_topic)"/> | ||
<param name="result_topic" value="$(var result_topic)"/> | ||
<param name="result_image_topic" value="$(var result_image_topic)"/> | ||
<param name="conf_thres" value="$(var conf_thres)"/> | ||
<param name="iou_thres" value="$(var iou_thres)"/> | ||
<param name="max_det" value="$(var max_det)"/> | ||
<param name="tracker" value="$(var tracker)"/> | ||
<param name="debug" value="$(var debug)"/> | ||
<param name="debug_conf" value="$(var debug_conf)"/> | ||
<param name="debug_line_width" value="$(var debug_line_width)"/> | ||
<param name="debug_font_size" value="$(var debug_font_size)"/> | ||
<param name="debug_font" value="$(var debug_font)"/> | ||
<param name="debug_labels" value="$(var debug_labels)"/> | ||
<param name="debug_boxes" value="$(var debug_boxes)"/> | ||
<param name="result_conf" value="$(var result_conf)"/> | ||
<param name="result_line_width" value="$(var result_line_width)"/> | ||
<param name="result_font_size" value="$(var result_font_size)"/> | ||
<param name="result_font" value="$(var result_font)"/> | ||
<param name="result_labels" value="$(var result_labels)"/> | ||
<param name="result_boxes" value="$(var result_boxes)"/> | ||
<!--<param name="classes" value="0, 1, 2" value-sep=", "/>--> | ||
<param name="device" value="$(var device)"/> | ||
</node> | ||
<!-- Image view --> | ||
|
||
<node if="$(var debug)" pkg="image_view" exec="image_view" output="screen"> | ||
<remap from="image" to="debug_image"/> | ||
<remap from="image" to="$(var result_image_topic)"/> | ||
</node> | ||
</launch> |
Oops, something went wrong.