This is ROS-noetic-YOLOv8 package. I couldn't make other nessesarry directries but I'm going to make them.
install ultralytics
pip install ultralytics
clone in your workspace
cd PATH/TO/WORKSPACE/SRC/
git clone https://github.com/ASAKA-219/yolov8_ros
If you don't install Image msg publish pkg. You can Install usb_cam pkg automatically.
cd PATH/TO/WORKSPACE/
rosdep install --from-paths src --ignore-src --rosdistro $ROSDISTRO -y
build package
catkin build
rosrun yolov8_ros detect.py image_topic:=<IMAGE_TOPIC> camera_info:=<CAMERA_INFO_TOPIC>
rosluanch yolov8_ros detect.launch camera_path:=<CAMERA_PATH> image_topic:=<IMAGE_TOPIC> caminfo_topic:=<CAMERA_INFO_TOPIC>
- Subscribe
Image - Publish
/yolov8_ros/detect_img
- yolov8_ros/detect_img
- yolov8_ros/bounding_box
- yolov8_ros/bounding_boxes