Commit 9ff719b6 authored by wangdawei's avatar wangdawei

test

parent 72d299c1
...@@ -34,6 +34,10 @@ AdjustPPK::AdjustPPK(const string &ieBaseDir, const string &mapDir) ...@@ -34,6 +34,10 @@ AdjustPPK::AdjustPPK(const string &ieBaseDir, const string &mapDir)
calib_.translation() = m.block(0, 3, 3, 1); calib_.translation() = m.block(0, 3, 3, 1);
calib_.linear() = m.block(0, 0, 3, 3); calib_.linear() = m.block(0, 0, 3, 3);
Quaterniond q(calib_.linear());
Vector3d rpy= RotationQuaternionToEulerVector(q);
LOG(INFO) << "calib_: " << calib_.translation().transpose()
<< " rpy: " << rpy.transpose();
boost::thread trd(boost::bind(&AdjustPPK::LoadMap, this)); boost::thread trd(boost::bind(&AdjustPPK::LoadMap, this));
} }
...@@ -109,7 +113,7 @@ void AdjustPPK::OnReceivedCloud(const PPointCloud &cloud) ...@@ -109,7 +113,7 @@ void AdjustPPK::OnReceivedCloud(const PPointCloud &cloud)
if(cloudPacket.timestamp > 1683806268.156870){ if(cloudPacket.timestamp > 1683806268.156870){
exit(0); exit(0);
} }
pcl::io::savePCDFileBinary(ieBaseDir_ + "/" + to_string(cloudPacket.timestamp) + ".pcd", cloud); pcl::io::savePCDFileBinary(ieBaseDir_ + "/" + to_string(cloudPacket.timestamp) + "_raw.pcd", cloud);
// exit(0); // exit(0);
for(const auto &p : cloud){ for(const auto &p : cloud){
PointInter point; PointInter point;
...@@ -258,7 +262,7 @@ PointCloudInter::Ptr AdjustPPK::GetBaseFrame( ...@@ -258,7 +262,7 @@ PointCloudInter::Ptr AdjustPPK::GetBaseFrame(
} }
bool AdjustPPK::Undisort( bool AdjustPPK::Undisort(
CloudPacket &rawFrame, CloudInfoForMatch &cloudInfo) const CloudPacket &rawFrame, CloudInfoForMatch &cloudInfo)
{ {
vector<IsometryData> periodPose; vector<IsometryData> periodPose;
periodPose.reserve(150); periodPose.reserve(150);
......
...@@ -65,7 +65,7 @@ private: ...@@ -65,7 +65,7 @@ private:
PointCloudInter::Ptr GetBaseFrame(const CloudPacket &cloudData); PointCloudInter::Ptr GetBaseFrame(const CloudPacket &cloudData);
bool Undisort(CloudPacket &baseFrame, CloudInfoForMatch &cloudInfo); bool Undisort(const CloudPacket &baseFrame, CloudInfoForMatch &cloudInfo);
bool ConfigMap(double timestamp); bool ConfigMap(double timestamp);
......
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