mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-12 20:49:50 +08:00
fixed #536
This commit is contained in:
+1
-5
@@ -2102,11 +2102,7 @@ void CoreWrapper::process(
|
|||||||
std::map<int, float> nodes = graph::findNearestNodes(filteredPoses, mapToOdom_*odom, maxMappingNodes_);
|
std::map<int, float> nodes = graph::findNearestNodes(filteredPoses, mapToOdom_*odom, maxMappingNodes_);
|
||||||
for(std::map<int, float>::iterator iter=nodes.begin(); iter!=nodes.end(); ++iter)
|
for(std::map<int, float>::iterator iter=nodes.begin(); iter!=nodes.end(); ++iter)
|
||||||
{
|
{
|
||||||
std::map<int, Transform>::iterator pter = filteredPoses.find(iter->first);
|
nearestPoses.insert(*filteredPoses.find(iter->first));
|
||||||
if(pter != filteredPoses.end())
|
|
||||||
{
|
|
||||||
nearestPoses.insert(*pter);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//add latest/zero and make sure those on a planned path are not filtered
|
//add latest/zero and make sure those on a planned path are not filtered
|
||||||
std::set<int> onPath;
|
std::set<int> onPath;
|
||||||
|
|||||||
Reference in New Issue
Block a user