-
Notifications
You must be signed in to change notification settings - Fork 43
/
detector.launch
executable file
·28 lines (25 loc) · 1.47 KB
/
detector.launch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="UTF-8"?>
<launch>
<!-- Camera topic and weights, config and classes files -->
<arg name="image_topic" default="/camera/rgb_color"/>
<arg name="weights_name" default="yolov3.weights"/>
<arg name="config_name" default="yolov3.cfg"/>
<arg name="classes_name" default="coco.names"/>
<!-- Published topics -->
<arg name="publish_image" default="true"/>
<arg name="detected_objects_topic" default="detected_objects_in_image"/>
<arg name="detections_image_topic" default="detections_image_topic"/>
<!-- Detection confidence -->
<arg name="confidence" default="0.7"/>
<!-- Node -->
<node name="detector_manager" pkg="yolov3_pytorch_ros" type="detector.py" output="screen">
<param name="image_topic" value="$(arg image_topic)"/>
<param name="weights_name" value="$(arg weights_name)"/>
<param name="config_name" value="$(arg config_name)"/>
<param name="classes_name" value="$(arg classes_name)"/>
<param name="publish_image" value="$(arg publish_image)"/>
<param name="detected_objects_topic" value="$(arg detected_objects_topic)"/>
<param name="detections_image_topic" value="$(arg detections_image_topic)"/>
<param name="confidence" value="$(arg confidence)"/>
</node>
</launch>