Skip to content

Commit

Permalink
classifier, ogrid fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrxyz committed Oct 27, 2024
1 parent 235e343 commit f0e3807
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@

if __name__ == "__main__":
rospy.init_node("ball_launcher")
device = BallLauncherDevice(str(rospy.get_param("~port")))
port = "/dev/serial/by-id/usb-Raspberry_Pi_Pico_E6635C08CB65BC36-if00"
device = BallLauncherDevice(port)
rospy.spin()
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<?xml version="1.0"?>
<launch>

<arg name="weights_model1" default="$(find yolov7_ros)/src/mil_weights/robotx.pt" />
<arg name="weights_model1" default="$(find yolov7_ros)/src/mil_weights/robotx2024.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_model1" default="$(find yolov7_ros)/src/data/robotx2024.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="main_image_topic" default="/camera/front/right/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="conf_thresh" default="0.50" />
<arg name="image_size" default="640" />
<arg name="device" default="cpu" />
<arg name="use_yolo_model1" default="False" />
<arg name="use_yolo_model1" default="True" />
<arg name="use_yolo_model2" default="False" />
<arg name="use_yolo_model3" default="True" />
<arg name="use_yolo_model3" default="False" />

<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" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ void OgridManager::update_ogrid(ObjectMap const& objects)
// Clear ogrid
ogrid_mat_ = cv::Scalar(0);

if (!bounds_)
{
return;
}

// Draw border on ogrid
draw_boundary();

Expand Down

0 comments on commit f0e3807

Please sign in to comment.