Commit e268ae0b authored by wangdawei's avatar wangdawei

test

parent 6307621b
...@@ -61,11 +61,9 @@ void AdjustPPK::ReadBag(const string &bagPath) ...@@ -61,11 +61,9 @@ void AdjustPPK::ReadBag(const string &bagPath)
viewIterator++; viewIterator++;
continue; continue;
} }
LOG_EVERY_N(INFO, 1) << "processScan";
PPointCloud cloud; PPointCloud cloud;
if(convert_->processScan(m.instantiate<pandar_msgs::PandarScan>(), cloud)){ if(convert_->processScan(m.instantiate<pandar_msgs::PandarScan>(), cloud)){
pcl::io::savePCDFileBinary(ieBaseDir_ + "/" + to_string(cloud.header.stamp) + ".pcd", cloud); OnReceivedCloud(cloud);
// OnReceivedCloud(cloud);
} }
} }
} }
...@@ -98,6 +96,8 @@ void AdjustPPK::OnReceivedCloud(const PPointCloud &cloud) ...@@ -98,6 +96,8 @@ void AdjustPPK::OnReceivedCloud(const PPointCloud &cloud)
cloudPacket.cloud.reserve(cloud.size()); cloudPacket.cloud.reserve(cloud.size());
LOG(INFO) << setprecision(15) << "OnReceivedCloud: " << cloudPacket.timestamp LOG(INFO) << setprecision(15) << "OnReceivedCloud: " << cloudPacket.timestamp
<< " cloud.size()" << cloud.size(); << " cloud.size()" << cloud.size();
pcl::io::savePCDFileBinary(ieBaseDir_ + "/" + to_string(cloudPacket.timestamp) + ".pcd", cloud);
return;
for(const auto &p : cloud){ for(const auto &p : cloud){
PointInter point; PointInter point;
point.x = p.x; point.x = p.x;
......
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