mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-09 21:10:19 +08:00
Mac: fixed crash when discarding a signature (not moving enough) with self refenced links. Fixed link error with realsense2 library on Mac.
This commit is contained in:
+1
-1
@@ -471,7 +471,7 @@ ENDIF(WITH_REALSENSE)
|
|||||||
IF(WITH_REALSENSE2)
|
IF(WITH_REALSENSE2)
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
FIND_PACKAGE(RealSense2 QUIET)
|
FIND_PACKAGE(RealSense2 QUIET)
|
||||||
ELSE()
|
ELSE()
|
||||||
FIND_PACKAGE(realsense2 QUIET)
|
FIND_PACKAGE(realsense2 QUIET)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
IF(realsense2_FOUND)
|
IF(realsense2_FOUND)
|
||||||
|
|||||||
@@ -293,6 +293,11 @@ IF(realsense2_FOUND)
|
|||||||
${LIBRARIES}
|
${LIBRARIES}
|
||||||
${RealSense2_LIBRARIES}
|
${RealSense2_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
ELSEIF(APPLE)
|
||||||
|
SET(LIBRARIES
|
||||||
|
${LIBRARIES}
|
||||||
|
${realsense2_LIBRARIES}
|
||||||
|
)
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(LIBRARIES
|
SET(LIBRARIES
|
||||||
${LIBRARIES}
|
${LIBRARIES}
|
||||||
|
|||||||
@@ -3475,11 +3475,13 @@ bool Rtabmap::process(
|
|||||||
_optimizedPoses.erase(lastId);
|
_optimizedPoses.erase(lastId);
|
||||||
for(std::multimap<int, Link>::iterator iter=_constraints.find(lastId); iter!=_constraints.end() && iter->first==lastId;++iter)
|
for(std::multimap<int, Link>::iterator iter=_constraints.find(lastId); iter!=_constraints.end() && iter->first==lastId;++iter)
|
||||||
{
|
{
|
||||||
iter->second.to();
|
if(iter->second.to() != iter->second.from())
|
||||||
std::multimap<int, Link>::iterator jter = graph::findLink(_constraints, iter->second.to(), iter->second.from(), false);
|
|
||||||
if(jter != _constraints.end())
|
|
||||||
{
|
{
|
||||||
_constraints.erase(jter);
|
std::multimap<int, Link>::iterator jter = graph::findLink(_constraints, iter->second.to(), iter->second.from(), false);
|
||||||
|
if(jter != _constraints.end())
|
||||||
|
{
|
||||||
|
_constraints.erase(jter);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_constraints.erase(lastId);
|
_constraints.erase(lastId);
|
||||||
|
|||||||
Reference in New Issue
Block a user