mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-10 11:59:50 +08:00
Fixed RtabmapThread not transfering input features on intermediate nodes
This commit is contained in:
@@ -556,7 +556,6 @@ void RtabmapThread::addData(const OdometryEvent & odomEvent)
|
|||||||
// set negative id so rtabmap will detect it as an intermediate node
|
// set negative id so rtabmap will detect it as an intermediate node
|
||||||
SensorData tmp = odomEvent.data();
|
SensorData tmp = odomEvent.data();
|
||||||
tmp.setId(-1);
|
tmp.setId(-1);
|
||||||
tmp.setFeatures(std::vector<cv::KeyPoint>(), std::vector<cv::Point3f>(), cv::Mat());// remove features
|
|
||||||
_dataBuffer.push_back(OdometryEvent(tmp, odomEvent.pose(), odomInfo));
|
_dataBuffer.push_back(OdometryEvent(tmp, odomEvent.pose(), odomInfo));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user