CCNYRoboticsLab / ccny_rgbd_tools

ccny_rgbd_tools
GNU Lesser General Public License v3.0
125 stars 76 forks source link

Fixing n_candidates_ instead of assert in keyframe_graph_detector.cpp #22

Closed diogorolo closed 11 years ago

diogorolo commented 11 years ago

Hi,

Sometimes when you have a low amout of keyframes and you ask to generate the graph, the program exits due to: assert(ncandidates <= size);

An alternative would be(@@ -349,7 +349,10 @@):

// check for validity of n_candidates argument int size = matchmatrix.rows;

if(ncandidates > size) { ncandidates = size; } assert(ncandidates <= size);

ccny-ros-pkg commented 11 years ago

Thank you for the ticket, fixed in master branch of rgbdtools

To rebuild:

roscd lib_rgbdtools make wipe make