Skip to content

Commit 398cdcf

Browse files
lottemessingMatthijsBurgh
authored andcommitted
First version of yolo test exec
1 parent e47390c commit 398cdcf

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

ed_sensor_integration/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ target_link_libraries(ed_clearer_plugin ${catkin_LIBRARIES})
137137
add_executable(test_torch tools/test_torch.cpp)
138138
target_link_libraries(test_torch ${TORCH_LIBRARIES})
139139

140+
add_executable(test_yolo tools/test_yolo.cpp)
141+
target_link_libraries(test_yolo ${TORCH_LIBRARIES})
142+
140143
add_executable(ed_image_saver tools/image_saver.cpp)
141144
target_link_libraries(ed_image_saver ${catkin_LIBRARIES})
142145
add_dependencies(ed_image_saver ${catkin_EXPORTED_TARGETS})
@@ -185,6 +188,7 @@ install(
185188
ed_image_saver
186189
ed_segmenter
187190
test_torch
191+
test_yolo
188192
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
189193
)
190194

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <torch/torch.h>
2+
#include <iostream>
3+
4+
int main() {
5+
torch::Tensor tensor = torch::eye(3);
6+
std::cout << tensor << std::endl;
7+
}

0 commit comments

Comments
 (0)