mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
OccupancyGrid: added getCache() method
This commit is contained in:
@@ -786,7 +786,7 @@ void OccupancyGrid::update(const std::map<int, Transform> & posesIn)
|
||||
{
|
||||
if(addedNodes_.find(iter->first) == addedNodes_.end())
|
||||
{
|
||||
UDEBUG("Pose %d not found in current added poses, it be added to map", iter->first);
|
||||
UDEBUG("Pose %d not found in current added poses, it will be added to map", iter->first);
|
||||
poses.push_back(*iter);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1162,7 +1162,7 @@ std::vector<int> VWDictionary::findNN(const cv::Mat & queryIn) const
|
||||
{
|
||||
float d = dists.at<float>(i,j);
|
||||
int index;
|
||||
UWARN("results elemSize1=%d", results.elemSize1());
|
||||
|
||||
if (sizeof(size_t) == 8)
|
||||
{
|
||||
index = *((size_t*)&results.at<double>(i, j));
|
||||
|
||||
Reference in New Issue
Block a user