Skip to content

Commit cbbf10a

Browse files
updated CMake and small things to support onnx_runtime package
1 parent 7a5dff6 commit cbbf10a

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

ed_sensor_integration/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ project(ed_sensor_integration)
55
#add_compile_options(-Wall -Werror=all)
66
#add_compile_options(-Wextra -Werror=extra)
77

8-
# -------------- ONNXRuntime Setup (define this early) ------------------#
9-
set(ONNXRUNTIME_VERSION 1.21.1)
10-
set(ONNXRUNTIME_ROOT "/home/amigo/Documents/repos/hero_sam.bak/onnxruntime-linux-x64-gpu-${ONNXRUNTIME_VERSION}")
8+
# # -------------- ONNXRuntime Setup (define this early) ------------------#
9+
# set(ONNXRUNTIME_VERSION 1.21.1)
10+
# set(ONNXRUNTIME_ROOT "/home/amigo/Documents/repos/hero_sam.bak/onnxruntime-linux-x64-gpu-${ONNXRUNTIME_VERSION}")
1111

1212
# -------------- Neural Network Models ------------------#
1313

@@ -43,6 +43,7 @@ find_package(catkin REQUIRED COMPONENTS
4343
tue_filesystem
4444
visualization_msgs
4545
# 2D -> 3D point cloud estimation
46+
onnxruntime_ros
4647
yolo_onnx_ros
4748
sam_onnx_ros
4849
bmm_ros

ed_sensor_integration/include/ed_sensor_integration/kinect/segmodules/sam_seg_module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

33
#include <ros/ros.h>
4-
#include "yolo_inference.h"
4+
#include "yolo_onnx_ros/yolo_inference.hpp"
55
#include "sam_onnx_ros/sam_inference.hpp"
66
#include <sensor_msgs/Image.h>
77
#include <sensor_msgs/PointCloud2.h>

ed_sensor_integration/package.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
<exec_depend>sensor_msgs</exec_depend>
3939
<build_depend>tue_filesystem</build_depend>
4040
<exec_depend>tue_filesystem</exec_depend>
41-
41+
<build_depend>onnxruntime_ros</build_depend>
42+
<exec_depend>onnxruntime_ros</exec_depend>
4243
<!-- //For displaying SAM MASK -->
4344
<build_depend>cv_bridge</build_depend>
4445
<build_depend>image_transport</build_depend>

ed_sensor_integration/src/kinect/sam_seg_module.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "ed_sensor_integration/kinect/segmodules/sam_seg_module.h"
22
#include "sam_onnx_ros/segmentation.hpp"
3-
#include "detection.h"
3+
#include "yolo_onnx_ros/detection.hpp"
44

55
// Add required includes for types used in publishSegmentationResults
66
#include <cv_bridge/cv_bridge.h>

0 commit comments

Comments
 (0)