Skip to content

LoopDetection error when running main.py #5

Description

@citaer

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions