Commit 0d2bb8d7 authored by wangdawei's avatar wangdawei

check traj time

parent fecc9429
...@@ -127,6 +127,9 @@ void AdjustPPK::OnReceivedCloud(const PPointCloud &cloud) ...@@ -127,6 +127,9 @@ void AdjustPPK::OnReceivedCloud(const PPointCloud &cloud)
if(frontPTime < localPoseVec_.front().timestamp){ if(frontPTime < localPoseVec_.front().timestamp){
return; return;
} }
if(backPTime > localPoseVec_.back().timestamp){
return;
}
vector<IsometryData> periodPose = HandleLocalPPK(backPTime, frontPTime); vector<IsometryData> periodPose = HandleLocalPPK(backPTime, frontPTime);
CloudPacket cloudPacket; CloudPacket cloudPacket;
ros::Time rosTime; ros::Time rosTime;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment