Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
269a64c
Initial refactoring
IasonTheodorou Jul 3, 2025
3f0aa16
create catkin package
IasonTheodorou Jul 4, 2025
6ec4622
included CI tests
IasonTheodorou Jul 4, 2025
2ae0d7b
update of CMakeLists to include some initial needed components
IasonTheodorou Jul 4, 2025
02af27f
Return the mask on SegmentAnything function (not working properly)
IasonTheodorou Jul 4, 2025
7de1753
Updated CMake and removed not needed parts of the code
IasonTheodorou Aug 19, 2025
fbe8e00
Updated code format
IasonTheodorou Aug 26, 2025
a5a3c18
Small refactoring of the module
IasonTheodorou Aug 29, 2025
1957196
Refactor post processing for better accuracy and performance. Also co…
IasonTheodorou Sep 2, 2025
e6623fc
Added tests (still not working with catkin)
IasonTheodorou Sep 2, 2025
bdaf317
Fixed catkin workspace for both code and tests
IasonTheodorou Sep 4, 2025
bdab5a1
fixed functionallity for the tests to pass and added logging definition
IasonTheodorou Sep 5, 2025
8b7f913
renamed private members of utils and sam_inference
IasonTheodorou Sep 5, 2025
e1130c6
Separrated test files per category (utils or sam related for now)
IasonTheodorou Sep 5, 2025
c34410e
Updated initializer and SegmentAnything modules to store the data to …
IasonTheodorou Sep 10, 2025
69f3126
Enabled cuda on the decoder as well
IasonTheodorou Sep 10, 2025
23d4790
Fixed small bug of adding an extra (full img) bounding box
IasonTheodorou Sep 10, 2025
ce94fa8
Aligned dimensions [high width] between onnx and opencv
IasonTheodorou Sep 12, 2025
ce19e96
corrected tests for the new segmentation way of inference (initialize…
IasonTheodorou Sep 12, 2025
24de2e5
Removed typo / from model path
IasonTheodorou Sep 12, 2025
53be89c
Bump min required cmake version to 3.14
MatthijsBurgh Sep 16, 2025
6ddc3e6
EOF line added and package.xml structure update
IasonTheodorou Sep 16, 2025
ee403f2
Update read me and include better comments
IasonTheodorou Sep 23, 2025
33cde1a
Deleted redundant code and fixed some brackets
IasonTheodorou Sep 23, 2025
80bd818
made private member methods that were needed to be
IasonTheodorou Sep 23, 2025
ebe0539
Fixed structurre of CMakeLists and package.xml and logged with consol…
IasonTheodorou Sep 24, 2025
0b63cef
updated CMakeLists, included .hpp suffix and sam_onnx_ros include dir…
IasonTheodorou Sep 29, 2025
b7a8338
updated CMakeLists rosconsole bridge
IasonTheodorou Sep 30, 2025
da16133
updated CMakeLists for onnxruntime ros package and also .vscode configs
IasonTheodorou Oct 21, 2025
85b8df2
fix(cmake): opencv libraries
MatthijsBurgh Oct 22, 2025
a84c4f6
Add missing linking to opencv libs for test
MatthijsBurgh Oct 22, 2025
9eced35
Correct linking of tests
MatthijsBurgh Oct 22, 2025
d9c1684
Checkpoint best working version
IasonTheodorou Oct 25, 2025
515639d
Various CMake fixes
MatthijsBurgh Oct 28, 2025
3591e21
Removed redundant .vscode lines
IasonTheodorou Oct 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: CI

on: [push, pull_request]

jobs:
tue-ci:
name: TUe CI - ${{ github.event_name }}
runs-on: ubuntu-latest
steps:
- name: TUe CI
uses: tue-robotics/tue-env/ci/main@master
with:
package: ${{ github.event.repository.name }}
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
build/
images/*
onnxruntime*/
onnxruntime/*
docker/*
CMakefile
CMakeCache.txt
CMakeFiles/*
cmake_install.cmake
Makefile
SPEED-SAM-C-TENSORRT/
sam_inference/model/FastSAM-x.onnx
mask*
segmentation_results*
23 changes: 23 additions & 0 deletions .vscode/c_cpp_properties_json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/include/**",
"${workspaceFolder}/../hero_sam/onnxruntime-linux-x64-gpu-1.21.1/include",
"/usr/local/cuda/include",
"/usr/include/opencv4/**",
"/opt/ros/noetic/include/**"
],
"defines": [

],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "linux-gcc-x64",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}
94 changes: 94 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug SAM Model",
"type": "cppdbg",
"request": "launch",
"program": "/home/amigo/ros/noetic/system/devel/lib/sam_onnx_ros/test_sam_onnx_ros", // Path to the executable
"args": [], // Add any command-line arguments for your program here
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build", // Set the working directory
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build-sam-project" // Ensure the project is built before debugging
},
{
"name": "Debug GTest (pick binary)",
"type": "cppdbg",
"request": "launch",
"program": "${input:testBinary}", // pick utils_tests or sam_tests
"args": [
//"--gtest_filter=${input:gtestFilter}" // uncomment to filter tests
],
"cwd": "${workspaceFolder}", // cwd doesn’t matter if SAM_MODELS_DIR is set
"environment": [
{
"name": "SAM_MODELS_DIR",
"value": "${env:SAM_MODELS_DIR}"
} // or hardcode a path here
],
"stopAtEntry": false,
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "Run all tests (ctest)",
"type": "cppdbg",
"request": "launch",
"program": "/usr/bin/ctest",
"args": [
"--test-dir",
"/home/amigo/ros/noetic/system/build/sam_onnx_ros",
"-R",
"(sam_tests|utils_tests)",
"--output-on-failure",
"-j",
"4"
],
"cwd": "/home/amigo/ros/noetic/system/build/sam_onnx_ros",
"environment": [
{
"name": "SAM_MODELS_DIR",
"value": "${env:SAM_MODELS_DIR}"
}
],
"stopAtEntry": false,
"externalConsole": false,
"MIMode": "gdb"
// Note: ctest launching isn't great for step-debugging individual tests.
}
],
"inputs": [
{
"id": "testBinary",
"type": "pickString",
"description": "Select gtest executable",
"options": [
"/home/amigo/ros/noetic/system/devel/.private/sam_onnx_ros/lib/sam_onnx_ros/utils_tests",
"/home/amigo/ros/noetic/system/devel/.private/sam_onnx_ros/lib/sam_onnx_ros/sam_tests"
]
},
{
"id": "gtestFilter",
"type": "promptString",
"description": "gtest filter (e.g. Utils* or SamInferenceTest.PreProcess*)",
"default": "*"
}
],
}
77 changes: 77 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"files.associations": {
"iostream": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"array": "cpp",
"atomic": "cpp",
"strstream": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"bitset": "cpp",
"chrono": "cpp",
"codecvt": "cpp",
"complex": "cpp",
"condition_variable": "cpp",
"cstdint": "cpp",
"deque": "cpp",
"list": "cpp",
"map": "cpp",
"set": "cpp",
"unordered_map": "cpp",
"unordered_set": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"optional": "cpp",
"random": "cpp",
"ratio": "cpp",
"regex": "cpp",
"string": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"fstream": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"istream": "cpp",
"limits": "cpp",
"mutex": "cpp",
"new": "cpp",
"ostream": "cpp",
"shared_mutex": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"thread": "cpp",
"cfenv": "cpp",
"cinttypes": "cpp",
"typeindex": "cpp",
"typeinfo": "cpp",
"variant": "cpp",
"compare": "cpp",
"concepts": "cpp",
"numbers": "cpp",
"semaphore": "cpp",
"stop_token": "cpp",
"*.txx": "cpp",
"filesystem": "cpp"
}
}
36 changes: 36 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build-sam-project",
"dependsOrder": "sequence",
"dependsOn": ["configure-sam", "build-sam-binary"],
"problemMatcher": ["$gcc"],
"group": "build"
},
{
"label": "configure-sam",
"type": "shell",
"command": "cmake",
"args": [
"-DCMAKE_BUILD_TYPE=Debug",
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
"-S", "${workspaceFolder}/",
"-B", "${workspaceFolder}/build"
],
"problemMatcher": ["$gcc"]
},
{
"label": "build-sam-binary",
"type": "shell",
"command": "cmake",
"args": [
"--build",
"${workspaceFolder}/build",
"--config", "Debug"
],
"problemMatcher": ["$gcc"]
},

]
}
Loading
Loading