Skip to content

Commit cc2323e

Browse files
committed
minor
1 parent f9ff7bb commit cc2323e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

thirdparty/hungarian-algorithm-cpp/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ find_package(catkin_simple REQUIRED)
66
# find_package(cmake_modules)
77
# find_package(Eigen3 REQUIRED)
88
# find_package(decomp_util REQUIRED)
9-
include_directories(${EIGEN3_INCLUDE_DIRS})
9+
include_directories(${EIGEN3_INCLUDE_DIRS} include)
1010

1111
catkin_simple()
1212

@@ -16,7 +16,7 @@ set(SOURCE_FILES
1616
cs_add_library(hungarian ${SOURCE_FILES})
1717
target_link_libraries(hungarian ${catkin_LIBRARIES} )
1818

19-
cs_add_executable(test_hungarian src/testMain.cpp)
19+
cs_add_executable(test_hungarian src/test_hungarian.cpp)
2020
target_link_libraries(test_hungarian hungarian)
2121

2222
cs_install()

thirdparty/hungarian-algorithm-cpp/src/testMain.cpp thirdparty/hungarian-algorithm-cpp/src/test_hungarian.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
int main(void)
66
{
77
// please use "-std=c++11" for this initialization of vector.
8-
vector<vector<double> > costMatrix = {
9-
{ 10, 19, 8, 15, 0 }, { 10, 18, 7, 17, 0 }, { 13, 16, 9, 14, 0 }, { 12, 19, 8, 18, 0 }
10-
};
8+
vector<vector<double> > costMatrix = { { 10, 19, 8, 15, 0 }, { 10, 18, 7, 17, 0 }, { 13, 16, 9, 14, 0 },
9+
{ 12, 19, 8, 18, 0 }, { 12, 19, 8, 18, 0 }, { 12, 19, 8, 18, 0 },
10+
{ 10, 19, 8, 15, 0 } };
1111

1212
HungarianAlgorithm HungAlgo;
1313
vector<int> assignment;

0 commit comments

Comments
 (0)