MR_SLAM icon indicating copy to clipboard operation
MR_SLAM copied to clipboard

LoopDetection error when running main.py

Open citaer opened this issue 2 years ago • 0 comments

In MR_SLAM/LoopDetection/src/RING_ros/util.py, the code in line 99 should change from R[:3, 3] = np.array([x, y, 0]) to R[:3, 3] = np.array([x[0], y[0], 0]), which can solve the problem of 'the requested arrary has an imhomogeneous shape after 1 dimensions'. In MR_SLAM/LoopDetection/src/RING_ros/main.py, he code in line 100 should change from fitness = gicp.get_fitness_score(max_range=1.0) to fitness = gicp.get_fitness_score(1.0), which can solve the problem of 'TypeError: get_fitness_score(): incompatible function arguments. The following argument types are supported: 1. (self: pygicp.LsqRegistration, arg0: float) -> float'

citaer avatar Mar 06 '23 04:03 citaer