Don't publish new node data when in localization mode

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1676 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2014-09-09 18:47:04 +00:00
parent edb8245670
commit e687302ce0

View File

@@ -1525,7 +1525,7 @@ bool Rtabmap::process(const SensorData & data)
{
// Add data
std::vector<unsigned char> im;
if(_rgbdSlamMode)
if(_rgbdSlamMode && _memory->isIncremental())
{
std::vector<unsigned char> depth, depth2d;
float fx, fy, cx, cy;