Commit 495625de authored by wangdawei's avatar wangdawei

test

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