mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
Memory: Disabled occupancy grid update if no depth image
This commit is contained in:
@@ -3637,7 +3637,7 @@ Signature * Memory::createSignature(const SensorData & data, const Transform & p
|
|||||||
cv::Mat ground, obstacles;
|
cv::Mat ground, obstacles;
|
||||||
float cellSize = 0.0f;
|
float cellSize = 0.0f;
|
||||||
cv::Point3f viewPoint(0,0,0);
|
cv::Point3f viewPoint(0,0,0);
|
||||||
if(_createOccupancyGrid)
|
if(_createOccupancyGrid && !data.depthOrRightRaw().empty())
|
||||||
{
|
{
|
||||||
_occupancy->createLocalMap(*s, ground, obstacles, viewPoint);
|
_occupancy->createLocalMap(*s, ground, obstacles, viewPoint);
|
||||||
cellSize = _occupancy->getCellSize();
|
cellSize = _occupancy->getCellSize();
|
||||||
|
|||||||
Reference in New Issue
Block a user