Fixed ProximityByTime wrong guess transform. Fixed Icp correspondence ratio computation when using voxel filter. OdometryResetEvent: added pose to constructor.

This commit is contained in:
matlabbe
2017-08-15 15:26:03 -04:00
parent 1e335e53ba
commit b5b96a3edb
6 changed files with 66 additions and 80 deletions
+4 -1
View File
@@ -97,9 +97,12 @@ private:
class OdometryResetEvent : public UEvent
{
public:
OdometryResetEvent(){}
OdometryResetEvent(const Transform & pose = Transform::getIdentity()){_pose = pose;}
virtual ~OdometryResetEvent() {}
virtual std::string getClassName() const {return "OdometryResetEvent";}
const Transform & getPose() const {return _pose;}
private:
Transform _pose;
};
}
@@ -65,6 +65,7 @@ private:
Odometry * _odometry;
unsigned int _dataBufferMaxSize;
bool _resetOdometry;
Transform _resetPose;
};
} // namespace rtabmap