robocup-software icon indicating copy to clipboard operation
robocup-software copied to clipboard

Munkres library clips cost matrix to ints from floats on role assignment

Open JNeiger opened this issue 6 years ago • 1 comments

You can print out the cost matrix using the print_matrix from the munkres library to check the matrix. I also changed the print formatting to be float instead of int and it continues to be a problem. Based on what the code looks like, it should just choose the float type out of the union, AnyNum (in munkres.py)

A simple bypass around this is to just multiply everything and treat it as fixed point. I would like to fix the underlying problem though eventually.

JNeiger avatar Jul 06 '19 01:07 JNeiger

I think the easiest way to fix this is just to cast everything to float before adding to the matrix

JNeiger avatar Jul 20 '19 19:07 JNeiger