robocup-software
robocup-software copied to clipboard
Munkres library clips cost matrix to ints from floats on role assignment
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.
I think the easiest way to fix this is just to cast everything to float before adding to the matrix