xhost +local:docker
vscode 접속 후 좌측메뉴에서 remote Explorer > Dev Container > jaekyun/jk:sotif 실행
도커 터미널에서 setup.bash 실행
source /root/catkin_ws/devel/setup.bash
/vds_node_localhost_2210/image_raw
, gt_5
토픽을 가지고 있어야 함roslaunch yolov8_ros yolov8_ros.launch bagfile:=/root/catkin_ws/src/yolov8_ros/bagfiles/no8.bag
bagfile:=/root/catkin_ws/src/yolov8_ros/bagfiles/no8.bag
문장을 안쓰면 no8.bag을 default로 사용/root/catkin_ws/src/yolov8_ros/launch/disturbance.launch
에서<arg name="input" default="/vds_node_localhost_2210/image_raw"/>
부분을 disturbance모델 거친 후 발행되는 토픽 이름으로 대체 # disturbance.launch
<launch>
<!-- Detection configuration -->
<arg name="weights" default="$(find yolov8_ros)/src/n200_best.pt"/>
<arg name="data" default="$(find yolov8_ros)/src/yolov8_tracking/yolov8/ultralytics/yolo/data/datasets/sotif.yaml"/>
<arg name="device" default="0"/>
<!-- replace imgsz -->
<arg name="inference_size_h" default="1080"/>
<arg name="inference_size_w" default="1920"/>
<!-- ROS topics -->
<arg name="input" default="/vds_node_localhost_2210/image_raw"/> # 이 부분 수정
<arg name="gt" default="/gt_5"/>
<arg name="output_topic" default="/yolov5/detections"/>
<arg name="bagfile" default="$(find yolov8_ros)/no8.bag -d 5 --wait-for-subscribers"/>
<!-- Optional topic (publishing annotated image) -->
<arg name="publish_image" default="false"/>
<arg name="output_image_topic" default="/yolov5/image_out"/>
<node name="yolov8" pkg="yolov8_ros" type="track.py" output="screen" >
<param name="weights" value="$(arg weights)"/>
<param name="data" value="$(arg data)"/>
<param name="device" value="$(arg device)" />
<param name="input" value="$(arg input)"/>
<param name="gt" value="$(arg gt)"/>
<param name="output_topic" value="$(arg output_topic)"/>
<param name="inference_size_h" value="$(arg inference_size_h)"/>
<param name="inference_size_w" value="$(arg inference_size_w)"/>
<param name="publish_image" value="$(arg publish_image)"/>
<param name="output_image_topic" value="$(arg output_image_topic)"/>
</node>
<node pkg="rosbag" type ="play" name="rosbag_play" args="$(arg bagfile)" />
</launch>
roslaunch yolov8_ros disturbance.launch bagfile:=/root/catkin_ws/src/yolov8_ros/bagfiles/no8.bag
실행xhost +local:docker
실행