Skip to content

Commit 63e4f11

Browse files
Made the yolo a catkin package
1 parent d5bcc12 commit 63e4f11

File tree

5 files changed

+47
-5
lines changed

5 files changed

+47
-5
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tue-ci:
7+
name: TUe CI - ${{ github.event_name }}
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: TUe CI
11+
uses: tue-robotics/tue-env/ci/main@master
12+
with:
13+
package: ${{ github.event.repository.name }}

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ include_directories(${OpenCV_INCLUDE_DIRS})
2929

3030
# -------------- ONNXRuntime ------------------#
3131
set(ONNXRUNTIME_VERSION 1.21.0)
32-
set(ONNXRUNTIME_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../hero_sam/onnxruntime-linux-x64-gpu-1.21.1")
32+
set(ONNXRUNTIME_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../hero_sam.bak/onnxruntime-linux-x64-gpu-1.21.1")
3333
include_directories(${ONNXRUNTIME_ROOT}/include)
3434

3535
# -------------- Cuda ------------------#
@@ -43,7 +43,7 @@ set(PROJECT_SOURCES
4343

4444
# Main executable (without tests)
4545
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES})
46-
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/inc)
46+
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
4747

4848
# Link libraries for main executable
4949
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} ${ONNXRUNTIME_ROOT}/lib/libonnxruntime.so)
@@ -54,7 +54,7 @@ add_executable(${PROJECT_NAME}_test
5454
src/yolo_inference.cpp # Include only the source files needed for testing (not main.cpp)
5555
)
5656

57-
target_include_directories(${PROJECT_NAME}_test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/inc)
57+
target_include_directories(${PROJECT_NAME}_test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
5858

5959
# Link libraries for test executable
6060
target_link_libraries(${PROJECT_NAME}_test
@@ -69,10 +69,10 @@ add_test(NAME yolo_tests COMMAND ${PROJECT_NAME}_test)
6969

7070
# Download https://raw.githubusercontent.com/ultralytics/ultralytics/main/ultralytics/cfg/datasets/coco.yaml
7171
# and put it in the same folder of the executable file
72-
configure_file(../hero_sam/yolo_inference/data/coco.yaml ${CMAKE_CURRENT_BINARY_DIR}/coco.yaml COPYONLY)
72+
configure_file(/home/amigo/Documents/repos/hero_sam.bak/yolo_inference/data/coco.yaml ${CMAKE_CURRENT_BINARY_DIR}/coco.yaml COPYONLY)
7373

7474
# Copy yolov8n.onnx file to the same folder of the executable file
75-
configure_file(../hero_sam/yolo_inference/model/yolo11m.onnx ${CMAKE_CURRENT_BINARY_DIR}/yolo11m.onnx COPYONLY)
75+
configure_file(/home/amigo/Documents/repos/hero_sam.bak/yolo_inference/model/yolo11m.onnx ${CMAKE_CURRENT_BINARY_DIR}/yolo11m.onnx COPYONLY)
7676

7777
# Create folder name images in the same folder of the executable file
7878
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
File renamed without changes.

package.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0"?>
2+
<?xml-model
3+
href="http://download.ros.org/schema/package_format3.xsd"
4+
schematypens="http://www.w3.org/2001/XMLSchema"?>
5+
<package format="3">
6+
<name>yolo_onnx_ros</name>
7+
<version>0.0.0</version>
8+
<description>Yolo inference</description>
9+
10+
<maintainer email="iasonth95@gmail.com">Iason Theodorou</maintainer>
11+
12+
<license>ToDo</license>
13+
14+
<buildtool_depend>catkin</buildtool_depend>
15+
16+
<build_depend>libopencv-dev</build_depend>
17+
<exec_depend>libopencv-dev</exec_depend>
18+
<build_depend>onnxruntime_ros</build_depend>
19+
<exec_depend>onnxruntime_ros</exec_depend>
20+
21+
<test_depend>catkin_lint_cmake</test_depend>
22+
23+
<doc_depend>doxygen</doc_depend>
24+
25+
<export>
26+
<rosdoc config="rosdoc.yaml" />
27+
</export>
28+
29+
</package>

0 commit comments

Comments
 (0)