Skip to content
Snippets Groups Projects
Commit 7255c15e authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Modify voteForKf to use last timestamp and not incoming

parent ba2b9bc3
No related branches found
No related tags found
1 merge request!41Draft: Resolve "New branch laser 3d"
......@@ -179,7 +179,7 @@ unsigned int ProcessorOdomIcp3d::processNew(const int& _max_features)
*/
bool ProcessorOdomIcp3d::voteForKeyFrame() const
{
if (incoming_laser_->getTimeStamp() - origin_laser_->getTimeStamp() > params_odom_icp_->max_time_span)
if (last_ptr_->getTimeStamp() - origin_ptr_->getTimeStamp() > params_odom_icp_->max_time_span)
{
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment