Skip to content

Commit b9c27a2

Browse files
authored
Merge pull request #87 from fmessmer/fixes
various fixes
2 parents e074b46 + a9947fb commit b9c27a2

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

cob_people_detection/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ find_package(catkin REQUIRED COMPONENTS
3636
${catkin_BUILD_PACKAGES}
3737
)
3838

39-
find_package(Boost REQUIRED COMPONENTS signals system filesystem)
39+
find_package(Boost REQUIRED COMPONENTS system filesystem)
4040
find_package(OpenCV REQUIRED)
4141
#find_package(orocos_kdl REQUIRED)
4242
#find_package(PCL REQUIRED)

cob_people_detection/common/src/munkres/munkres.cpp

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -572,12 +572,8 @@ bool munkres::step5(int r, int c)
572572
//create our sequence
573573
while (!done)
574574
{
575-
switch (looking_for_star)
575+
if (looking_for_star)
576576
{
577-
578-
//if we're looking for a star
579-
case true:
580-
581577
//special case protection
582578
a = r;
583579

@@ -611,11 +607,9 @@ bool munkres::step5(int r, int c)
611607
//we can't do this earlier due to needing to check for stars in the column
612608
//mark the column as starred
613609
column_starred[c] = true;
614-
break;
615-
616-
//if we're looking for a prime
617-
case false:
618-
610+
}
611+
else
612+
{
619613
//prime current index
620614
cell_array[r][c].primed = false;
621615
//unstar current index
@@ -630,7 +624,6 @@ bool munkres::step5(int r, int c)
630624

631625
//set case to look for star next
632626
looking_for_star = true;
633-
break;
634627
}
635628
}
636629

0 commit comments

Comments
 (0)