Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
<configure component="SolARDeviceDataLoader">
<property name="calibrationFile" type="string" value="../../data/data_hololens/hololens_calibration.yml"/>
<property name="pathToData" type="string" value="../../data/data_hololens/loop_desktop_B"/>
<property name="delayTime" type="int" value="1"/>
<property name="delayTime" type="int" value="300"/>
</configure>
<configure component="SolARSLAMBootstrapper">
<property name="hasPose" type="int" value="1"/>
Expand Down
3 changes: 2 additions & 1 deletion MapExtension/SolARSample_Mapping_MapExtension_Mono/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ int main(int argc, char *argv[])
break;
}

// Save map
// Save map extension
mapper->bindTo<xpcf::IConfigurable>()->getProperty("directory")->setStringValue("output/extension-map");
mapper->saveToFile();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
<property name="thresConfidence" type="float" value="0.25"/>
</configure>
<configure component="SolARMapper" name="fusionMapper">
<property name="directory" type="string" value="../../data/map_hololens/mapAB"/>
<property name="directory" type="string" value="output/fusion-floating-map"/>
<property name="identificationFileName" type="string" value="identification.bin"/>
<property name="coordinateFileName" type="string" value="coordinate.bin"/>
<property name="pointCloudManagerFileName" type="string" value="pointcloud.bin"/>
Expand All @@ -262,7 +262,7 @@
<property name="thresConfidence" type="float" value="0.25"/>
</configure>
<configure component="SolAROverlapDetector">
<property name="minNbInliers" type="int" value="50"/>
<property name="minNbInliers" type="int" value="40"/>
</configure>
<configure component="SolARMapFusionOpencv">
<property name="radius" type="float" value="0.2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
<property name="thresConfidence" type="float" value="0.25"/>
</configure>
<configure component="SolARMapper" name="fusionMapper">
<property name="directory" type="string" value="../../data/map_hololens/mapAB"/>
<property name="directory" type="string" value="output/fusion-local-map/"/>
<property name="identificationFileName" type="string" value="identification.bin"/>
<property name="coordinateFileName" type="string" value="coordinate.bin"/>
<property name="pointCloudManagerFileName" type="string" value="pointcloud.bin"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ namespace MAPPING {
}

FrameworkReturnCode PipelineMappingMonoProcessing::stop() {

LOG_DEBUG("PipelineMappingMonoProcessing::stop");

LOG_DEBUG("Stop mapping processing task");
m_mappingTask->stop();

LOG_DEBUG("PipelineMappingMonoProcessing::stop");
if (isBootstrapFinished()) {
globalBundleAdjustment();
}
LOG_DEBUG("Stop mapping processing task");
m_mappingTask->stop();
return FrameworkReturnCode::_SUCCESS;
}

Expand Down Expand Up @@ -357,9 +357,9 @@ namespace MAPPING {
std::vector<std::pair<uint32_t, uint32_t>> duplicatedPointsIndices;
if (m_loopDetector->detect(keyframe, detectedLoopKeyframe, sim3Transform, duplicatedPointsIndices) == FrameworkReturnCode::_SUCCESS) {
// detected loop keyframe
LOG_DEBUG("Detected loop keyframe id: {}", detectedLoopKeyframe->getId());
LOG_DEBUG("Nb of duplicatedPointsIndices: {}", duplicatedPointsIndices.size());
LOG_DEBUG("sim3Transform: \n{}", sim3Transform.matrix());
LOG_INFO("Detected loop keyframe id: {}", detectedLoopKeyframe->getId());
LOG_INFO("Nb of duplicatedPointsIndices: {}", duplicatedPointsIndices.size());
LOG_INFO("sim3Transform: \n{}", sim3Transform.matrix());
// performs loop correction
Transform3Df keyframeOldPose = keyframe->getPose();
m_loopCorrector->correct(keyframe, detectedLoopKeyframe, sim3Transform, duplicatedPointsIndices);
Expand All @@ -381,18 +381,7 @@ namespace MAPPING {
if (keyframe) {
m_tracking->updateReferenceKeyframe(keyframe);
}
}
else {
LOG_DEBUG("***** No (image, pose) pair to process *****");

// Data to store ?
if (m_dataToStore) {
m_dataToStore = false;

// Bundle adjustment, map pruning and global map udate
globalBundleAdjustment();
}
}
}
}
}

Expand Down
Loading