-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
68 additions
and
205 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 was deleted.
Oops, something went wrong.
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
117 changes: 58 additions & 59 deletions
117
NaviGator/mission_control/navigator_launch/launch/perception/classifier.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,68 +1,67 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
|
||
<arg name="weights_model1" default="$(find yolov7_ros)/src/mil_weights/robotx.pt" /> | ||
<arg name="weights_model2" default="$(find yolov7_ros)/src/mil_weights/robotx.pt" /> | ||
<arg name="weights_model3" default="$(find yolov7_ros)/src/mil_weights/stc.pt" /> | ||
<arg name="data_yaml_model1" default="$(find yolov7_ros)/src/data/vrx_buoys.yaml" /> | ||
<arg name="data_yaml_model2" default="$(find yolov7_ros)/src/data/vrx_buoys.yaml" /> | ||
<arg name="data_yaml_model3" default="$(find yolov7_ros)/src/data/stc.yaml" /> | ||
<arg name="main_image_topic" default="/camera/front/left/image_color"/> | ||
<arg name="image_topic_model1" default="/yolov7/model1" /> | ||
<arg name="image_topic_model2" default="/yolov7/model2" /> | ||
<arg name="out_topic_model1" default="detections_model1" /> | ||
<arg name="out_topic_model2" default="detections_model2" /> | ||
<arg name="out_topic_model3" default="stc_detections_model" /> | ||
<arg name="conf_thresh" default="0.25" /> | ||
<arg name="image_size" default="640" /> | ||
<arg name="device" default="cpu" /> | ||
<arg name="use_yolo_model1" default="False"/> | ||
<arg name="use_yolo_model2" default="False"/> | ||
<arg name="use_yolo_model3" default="True"/> | ||
<arg name="weights_model1" default="$(find yolov7_ros)/src/mil_weights/robotx.pt" /> | ||
<arg name="weights_model2" default="$(find yolov7_ros)/src/mil_weights/robotx.pt" /> | ||
<arg name="weights_model3" default="$(find yolov7_ros)/src/mil_weights/stc.pt" /> | ||
<arg name="data_yaml_model1" default="$(find yolov7_ros)/src/data/vrx_buoys.yaml" /> | ||
<arg name="data_yaml_model2" default="$(find yolov7_ros)/src/data/vrx_buoys.yaml" /> | ||
<arg name="data_yaml_model3" default="$(find yolov7_ros)/src/data/stc.yaml" /> | ||
<arg name="main_image_topic" default="/camera/front/left/image_color" /> | ||
<arg name="image_topic_model1" default="/yolov7/model1" /> | ||
<arg name="image_topic_model2" default="/yolov7/model2" /> | ||
<arg name="out_topic_model1" default="detections_model1" /> | ||
<arg name="out_topic_model2" default="detections_model2" /> | ||
<arg name="out_topic_model3" default="stc_detections_model" /> | ||
<arg name="conf_thresh" default="0.7" /> | ||
<arg name="image_size" default="640" /> | ||
<arg name="device" default="cpu" /> | ||
<arg name="use_yolo_model1" default="False" /> | ||
<arg name="use_yolo_model2" default="False" /> | ||
<arg name="use_yolo_model3" default="True" /> | ||
|
||
<node name="testing_arbiter" pkg="topic_tools" type="demux" | ||
args="$(arg main_image_topic) $(arg image_topic_model1) $(arg image_topic_model2) /yolov7/none"> | ||
<remap from="demux" to="/yolov7"/> | ||
</node> | ||
<node name="testing_arbiter" pkg="topic_tools" type="demux" args="$(arg main_image_topic) $(arg image_topic_model1) $(arg image_topic_model2) /yolov7/none"> | ||
<remap from="demux" to="/yolov7" /> | ||
</node> | ||
|
||
<!-- Use YOLOv7 --> | ||
<include if="$(arg use_yolo_model1)" file="$(find yolov7_ros)/launch/yolov7.launch"> | ||
<arg name="weights" value="$(arg weights_model1)"/> | ||
<arg name="image_topic" value="$(arg image_topic_model1)"/> | ||
<arg name="out_topic" value="$(arg out_topic_model1)"/> | ||
<arg name="conf_thresh" value="$(arg conf_thresh)"/> | ||
<arg name="image_size" value="$(arg image_size)"/> | ||
<arg name="device" value="$(arg device)"/> | ||
<arg name="data_yaml" value="$(arg data_yaml_model1)"/> | ||
</include> | ||
<!-- Use YOLOv7 --> | ||
<include if="$(arg use_yolo_model1)" file="$(find yolov7_ros)/launch/yolov7.launch"> | ||
<arg name="weights" value="$(arg weights_model1)" /> | ||
<arg name="image_topic" value="$(arg image_topic_model1)" /> | ||
<arg name="out_topic" value="$(arg out_topic_model1)" /> | ||
<arg name="conf_thresh" value="$(arg conf_thresh)" /> | ||
<arg name="image_size" value="$(arg image_size)" /> | ||
<arg name="device" value="$(arg device)" /> | ||
<arg name="data_yaml" value="$(arg data_yaml_model1)" /> | ||
</include> | ||
|
||
<!-- Use YOLOv7 --> | ||
<include if="$(arg use_yolo_model2)" file="$(find yolov7_ros)/launch/yolov7.launch"> | ||
<arg name="weights" value="$(arg weights_model2)"/> | ||
<arg name="image_topic" value="$(arg image_topic_model2)"/> | ||
<arg name="out_topic" value="$(arg out_topic_model2)"/> | ||
<arg name="conf_thresh" value="$(arg conf_thresh)"/> | ||
<arg name="image_size" value="$(arg image_size)"/> | ||
<arg name="device" value="$(arg device)"/> | ||
<arg name="data_yaml" value="$(arg data_yaml_model2)"/> | ||
</include> | ||
<!-- Use YOLOv7 --> | ||
<include if="$(arg use_yolo_model2)" file="$(find yolov7_ros)/launch/yolov7.launch"> | ||
<arg name="weights" value="$(arg weights_model2)" /> | ||
<arg name="image_topic" value="$(arg image_topic_model2)" /> | ||
<arg name="out_topic" value="$(arg out_topic_model2)" /> | ||
<arg name="conf_thresh" value="$(arg conf_thresh)" /> | ||
<arg name="image_size" value="$(arg image_size)" /> | ||
<arg name="device" value="$(arg device)" /> | ||
<arg name="data_yaml" value="$(arg data_yaml_model2)" /> | ||
</include> | ||
|
||
<!-- Use YOLOv7 --> | ||
<include if="$(arg use_yolo_model3)" file="$(find yolov7_ros)/launch/yolov7.launch"> | ||
<arg name="weights" value="$(arg weights_model3)"/> | ||
<arg name="image_topic" value="/stc_mask_debug"/> | ||
<arg name="out_topic" value="$(arg out_topic_model3)"/> | ||
<arg name="conf_thresh" value="$(arg conf_thresh)"/> | ||
<arg name="image_size" value="$(arg image_size)"/> | ||
<arg name="device" value="$(arg device)"/> | ||
<arg name="data_yaml" value="$(arg data_yaml_model3)"/> | ||
</include> | ||
<!-- Use YOLOv7 --> | ||
<include if="$(arg use_yolo_model3)" file="$(find yolov7_ros)/launch/yolov7.launch"> | ||
<arg name="weights" value="$(arg weights_model3)" /> | ||
<arg name="image_topic" value="/stc_mask_debug" /> | ||
<arg name="out_topic" value="$(arg out_topic_model3)" /> | ||
<arg name="conf_thresh" value="$(arg conf_thresh)" /> | ||
<arg name="image_size" value="$(arg image_size)" /> | ||
<arg name="device" value="$(arg device)" /> | ||
<arg name="data_yaml" value="$(arg data_yaml_model3)" /> | ||
</include> | ||
|
||
<arg name="train" default="False" /> | ||
<node pkg="navigator_vision" type="classifier.py" name="classifier" output="screen"> | ||
<param name="debug" value="True" /> | ||
<param name="image_topic" value="$(arg main_image_topic)" /> | ||
<param name="model_location" value="config/model" /> | ||
<param name="train" value="$(arg train)" /> | ||
</node> | ||
<arg name="train" default="False" /> | ||
<node pkg="navigator_vision" type="classifier.py" name="classifier" output="screen"> | ||
<param name="debug" value="True" /> | ||
<param name="image_topic" value="$(arg main_image_topic)" /> | ||
<param name="model_location" value="config/model" /> | ||
<param name="train" value="$(arg train)" /> | ||
</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
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