Skip to content

Commit be326ae

Browse files
committed
Fix wrong aruco includes in test_quick_decode.c and add missing aruco files
1 parent 1fa4e1a commit be326ae

2 files changed

Lines changed: 20 additions & 19 deletions

File tree

test/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ endforeach()
2424
# Add pose estimation tests for each image
2525
foreach(IMG IN LISTS TEST_IMAGE_NAMES)
2626
add_test(NAME test_tag_pose_estimation_${IMG}
27-
COMMAND $<TARGET_FILE:test_tag_pose_estimation>
27+
COMMAND $<TARGET_FILE:test_tag_pose_estimation>
2828
data/${IMG}.jpg data/${IMG}.txt
2929
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
3030
)
@@ -33,8 +33,9 @@ endforeach()
3333
# Quick decode test
3434
file(GLOB COMMON_SRC "${CMAKE_SOURCE_DIR}/common/*.c")
3535
file(GLOB TAG_FILES "${CMAKE_SOURCE_DIR}/tag*.c")
36+
file(GLOB ARUCO_FILES "${CMAKE_SOURCE_DIR}/aruco/tag*.c")
3637

37-
add_executable(test_quick_decode test_quick_decode.c "${CMAKE_SOURCE_DIR}/apriltag_quad_thresh.c" ${COMMON_SRC} ${TAG_FILES})
38+
add_executable(test_quick_decode test_quick_decode.c "${CMAKE_SOURCE_DIR}/apriltag_quad_thresh.c" ${COMMON_SRC} ${TAG_FILES} ${ARUCO_FILES})
3839
target_include_directories(test_quick_decode PRIVATE "${CMAKE_SOURCE_DIR}")
3940

4041
if (UNIX)

test/test_quick_decode.c

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@
1212
#include "tagCustom48h12.h"
1313
#include "tagStandard41h12.h"
1414
#include "tagStandard52h13.h"
15-
#include "tagAruco4x4_50.h"
16-
#include "tagAruco4x4_100.h"
17-
#include "tagAruco4x4_250.h"
18-
#include "tagAruco4x4_1000.h"
19-
#include "tagAruco5x5_50.h"
20-
#include "tagAruco5x5_100.h"
21-
#include "tagAruco5x5_250.h"
22-
#include "tagAruco5x5_1000.h"
23-
#include "tagAruco6x6_50.h"
24-
#include "tagAruco6x6_100.h"
25-
#include "tagAruco6x6_250.h"
26-
#include "tagAruco6x6_1000.h"
27-
#include "tagAruco7x7_50.h"
28-
#include "tagAruco7x7_100.h"
29-
#include "tagAruco7x7_250.h"
30-
#include "tagAruco7x7_1000.h"
31-
#include "tagArucoMIP36h12.h"
15+
#include "aruco/tagAruco4x4_50.h"
16+
#include "aruco/tagAruco4x4_100.h"
17+
#include "aruco/tagAruco4x4_250.h"
18+
#include "aruco/tagAruco4x4_1000.h"
19+
#include "aruco/tagAruco5x5_50.h"
20+
#include "aruco/tagAruco5x5_100.h"
21+
#include "aruco/tagAruco5x5_250.h"
22+
#include "aruco/tagAruco5x5_1000.h"
23+
#include "aruco/tagAruco6x6_50.h"
24+
#include "aruco/tagAruco6x6_100.h"
25+
#include "aruco/tagAruco6x6_250.h"
26+
#include "aruco/tagAruco6x6_1000.h"
27+
#include "aruco/tagAruco7x7_50.h"
28+
#include "aruco/tagAruco7x7_100.h"
29+
#include "aruco/tagAruco7x7_250.h"
30+
#include "aruco/tagAruco7x7_1000.h"
31+
#include "aruco/tagArucoMIP36h12.h"
3232

3333
#include "../apriltag.c"
3434

0 commit comments

Comments
 (0)