Skip to content

missing code #31

@SlamCabbage

Description

@SlamCabbage

void performSCLoopClosure()
{
if (cloudKeyPoses3D->points.empty() == true)
return;
// find keys
auto detectResult = scManager.detectLoopClosureID(); // first: nn index, second: yaw diff
int loopKeyCur = copy_cloudKeyPoses3D->size() - 1;;
int loopKeyPre = detectResult.first;
float yawDiffRad = detectResult.second; // not use for v1 (because pcl icp withi initial somthing wrong...)
if( loopKeyPre == -1 /* No loop found */)
return;

Missing assignments to copy_cloudKeyPoses6D, copy_cloudKeyPoses2D, and copy_cloudKeyPoses3D lead to errors at runtime.

In the previous code is:

        mtx.lock();
        *copy_cloudKeyPoses3D = *cloudKeyPoses3D;
        copy_cloudKeyPoses2D->clear();            // giseop
        *copy_cloudKeyPoses2D = *cloudKeyPoses3D; // giseop
        *copy_cloudKeyPoses6D = *cloudKeyPoses6D;
        mtx.unlock();

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