Skip to content

Commit d29d018

Browse files
included .vscode file configs
1 parent 06a18c8 commit d29d018

File tree

4 files changed

+234
-0
lines changed

4 files changed

+234
-0
lines changed

.vscode/c_cpp_properties_json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Linux",
5+
"includePath": [
6+
"${workspaceFolder}/**",
7+
"/usr/include/opencv4",
8+
"${workspaceFolder}/sam_inference/inc",
9+
"${workspaceFolder}/sam_inference/build"
10+
],
11+
"defines": [],
12+
"compilerPath": "/usr/bin/gcc",
13+
"cStandard": "c11",
14+
"cppStandard": "c++17",
15+
"intelliSenseMode": "linux-gcc-x64"
16+
}
17+
],
18+
"version": 4
19+
}

.vscode/launch.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug Yolo Model",
6+
"type": "cppdbg",
7+
"request": "launch",
8+
"program": "${workspaceFolder}/build/devel/lib/yolo_onnx_ros/yolo_onnx_ros", // Path to the executable
9+
"args": [], // Add any command-line arguments for your program here
10+
"stopAtEntry": false,
11+
"cwd": "${workspaceFolder}/build", // Set the working directory
12+
"environment": [],
13+
"externalConsole": false,
14+
"MIMode": "gdb",
15+
"setupCommands": [
16+
{
17+
"description": "Enable pretty-printing for gdb",
18+
"text": "-enable-pretty-printing",
19+
"ignoreFailures": true
20+
}
21+
],
22+
"preLaunchTask": "build-yolo-project" // Ensure the project is built before debugging
23+
},
24+
{
25+
"name": "Debug Yolo Test",
26+
"type": "cppdbg",
27+
"request": "launch",
28+
"program": "${workspaceFolder}/build/Yolov8OnnxRuntimeCPPInference_test", // Path to the executable
29+
"args": [], // Add any command-line arguments for your program here
30+
"stopAtEntry": false,
31+
"cwd": "${workspaceFolder}/build", // Set the working directory
32+
"environment": [],
33+
"externalConsole": false,
34+
"MIMode": "gdb",
35+
"setupCommands": [
36+
{
37+
"description": "Enable pretty-printing for gdb",
38+
"text": "-enable-pretty-printing",
39+
"ignoreFailures": true
40+
}
41+
],
42+
"preLaunchTask": "build-yolo-project" // Ensure the project is built before debugging
43+
}
44+
]
45+
}

.vscode/settings.json

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"files.associations": {
3+
"iostream": "cpp",
4+
"cctype": "cpp",
5+
"clocale": "cpp",
6+
"cmath": "cpp",
7+
"cstdarg": "cpp",
8+
"cstddef": "cpp",
9+
"cstdio": "cpp",
10+
"cstdlib": "cpp",
11+
"cstring": "cpp",
12+
"ctime": "cpp",
13+
"cwchar": "cpp",
14+
"cwctype": "cpp",
15+
"array": "cpp",
16+
"atomic": "cpp",
17+
"strstream": "cpp",
18+
"bit": "cpp",
19+
"*.tcc": "cpp",
20+
"bitset": "cpp",
21+
"chrono": "cpp",
22+
"codecvt": "cpp",
23+
"complex": "cpp",
24+
"condition_variable": "cpp",
25+
"cstdint": "cpp",
26+
"deque": "cpp",
27+
"list": "cpp",
28+
"map": "cpp",
29+
"set": "cpp",
30+
"unordered_map": "cpp",
31+
"unordered_set": "cpp",
32+
"vector": "cpp",
33+
"exception": "cpp",
34+
"algorithm": "cpp",
35+
"functional": "cpp",
36+
"iterator": "cpp",
37+
"memory": "cpp",
38+
"memory_resource": "cpp",
39+
"numeric": "cpp",
40+
"optional": "cpp",
41+
"random": "cpp",
42+
"ratio": "cpp",
43+
"regex": "cpp",
44+
"string": "cpp",
45+
"string_view": "cpp",
46+
"system_error": "cpp",
47+
"tuple": "cpp",
48+
"type_traits": "cpp",
49+
"utility": "cpp",
50+
"fstream": "cpp",
51+
"initializer_list": "cpp",
52+
"iomanip": "cpp",
53+
"iosfwd": "cpp",
54+
"istream": "cpp",
55+
"limits": "cpp",
56+
"mutex": "cpp",
57+
"new": "cpp",
58+
"ostream": "cpp",
59+
"shared_mutex": "cpp",
60+
"sstream": "cpp",
61+
"stdexcept": "cpp",
62+
"streambuf": "cpp",
63+
"thread": "cpp",
64+
"cfenv": "cpp",
65+
"cinttypes": "cpp",
66+
"typeindex": "cpp",
67+
"typeinfo": "cpp",
68+
"variant": "cpp",
69+
"compare": "cpp",
70+
"concepts": "cpp",
71+
"numbers": "cpp",
72+
"semaphore": "cpp",
73+
"stop_token": "cpp",
74+
"*.txx": "cpp",
75+
"filesystem": "cpp"
76+
}
77+
}

.vscode/tasks.json

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build-sam-project",
6+
"dependsOrder": "sequence",
7+
"dependsOn": ["configure-sam", "build-sam-binary"],
8+
"problemMatcher": ["$gcc"],
9+
"group": "build"
10+
},
11+
{
12+
"label": "build-pipeline-project",
13+
"dependsOrder": "sequence",
14+
"dependsOn": ["configure-pipeline", "build-pipeline-binary"],
15+
"problemMatcher": ["$gcc"],
16+
"group": "build"
17+
},
18+
{
19+
"label": "build-yolo-project",
20+
"dependsOrder": "sequence",
21+
"dependsOn": ["configure-yolo", "build-yolo-binary"],
22+
"problemMatcher": ["$gcc"],
23+
"group": "build"
24+
},
25+
{
26+
"label": "configure-sam",
27+
"type": "shell",
28+
"command": "cmake",
29+
"args": [
30+
"-DCMAKE_BUILD_TYPE=Debug",
31+
"-S", "${workspaceFolder}/sam_inference",
32+
"-B", "${workspaceFolder}/sam_inference/build"
33+
],
34+
"problemMatcher": ["$gcc"]
35+
},
36+
{
37+
"label": "configure-pipeline",
38+
"type": "shell",
39+
"command": "cmake",
40+
"args": [
41+
"-DCMAKE_BUILD_TYPE=Debug",
42+
"-S", "${workspaceFolder}/pipeline",
43+
"-B", "${workspaceFolder}/pipeline/build"
44+
],
45+
"problemMatcher": ["$gcc"]
46+
},
47+
{
48+
"label": "configure-yolo",
49+
"type": "shell",
50+
"command": "cmake",
51+
"args": [
52+
"-DCMAKE_BUILD_TYPE=Debug",
53+
"-S", "${workspaceFolder}/",
54+
"-B", "${workspaceFolder}/build"
55+
],
56+
"problemMatcher": ["$gcc"]
57+
},
58+
{
59+
"label": "build-sam-binary",
60+
"type": "shell",
61+
"command": "cmake",
62+
"args": [
63+
"--build",
64+
"${workspaceFolder}/sam_inference/build",
65+
"--config", "Debug"
66+
],
67+
"problemMatcher": ["$gcc"]
68+
},
69+
{
70+
"label": "build-pipeline-binary",
71+
"type": "shell",
72+
"command": "cmake",
73+
"args": [
74+
"--build",
75+
"${workspaceFolder}/pipeline/build",
76+
"--config", "Debug"
77+
],
78+
"problemMatcher": ["$gcc"]
79+
},
80+
{
81+
"label": "build-yolo-binary",
82+
"type": "shell",
83+
"command": "cmake",
84+
"args": [
85+
"--build",
86+
"${workspaceFolder}/build",
87+
"--config", "Debug"
88+
],
89+
"problemMatcher": ["$gcc"]
90+
}
91+
92+
]
93+
}

0 commit comments

Comments
 (0)