Commit 495625de authored by wangdawei's avatar wangdawei

test

parent 3aaaa3ad
......@@ -56,7 +56,7 @@ void AdjustPPK::ReadBag(const string &bagPath)
for(; viewIterator != view->end(); viewIterator++)
{
const rosbag::MessageInstance &m = *viewIterator;
LOG_EVERY_N(INFO, 1) << setprecision(15) << "m.getTime(): " << m.getTime().toSec();
// LOG_EVERY_N(INFO, 1) << setprecision(15) << "m.getTime(): " << m.getTime().toSec();
if(!m.isType<pandar_msgs::PandarScan>()){
viewIterator++;
continue;
......@@ -94,7 +94,7 @@ void AdjustPPK::OnReceivedCloud(const PPointCloud &cloud)
pcl_conversions::fromPCL(cloud.header.stamp, rosTime);
cloudPacket.timestamp = rosTime.toSec();
cloudPacket.cloud.reserve(cloud.size());
LOG(INFO) << setprecision(15) << "OnReceivedCloud: " << cloudPacket.timestamp
LOG_EVERY_N(INFO, 99) << setprecision(15) << "OnReceivedCloud: " << cloudPacket.timestamp
<< " cloud.size()" << cloud.size();
// pcl::io::savePCDFileBinary(ieBaseDir_ + "/" + to_string(cloudPacket.timestamp) + ".pcd", cloud);
for(const auto &p : cloud){
......
......@@ -20,9 +20,9 @@ struct PPKPeriod{
double endTime = -1;
int InPeriod(double timestamp){
LOG(INFO) << setprecision(15) << "timestamp " << timestamp
<< " startTime " << startTime
<< " endTime " << endTime;
// LOG(INFO) << setprecision(15) << "timestamp " << timestamp
// << " startTime " << startTime
// << " endTime " << endTime;
if(timestamp < startTime){
return -1;
}
......
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