Commit b80c1fe2 authored by wangdawei's avatar wangdawei

fix ppkindex

parent cfea629c
......@@ -313,7 +313,12 @@ vector<IsometryData> AdjustPPK::HandleLocalPPK(
mapPose_.translation().z(),
calibedBLH.x(), calibedBLH.y(), calibedBLH.z());
Quaterniond q(mapPose_.linear());
Vector3d rpy= RotationQuaternionToEulerVector(q);
Vector3d rpy= RotationQuaternionToEulerVector(q) / M_PI * 180;
rpy.y() = -rpy.y();
rpy.z() = -rpy.z();
while(rpy.z() < 0){
rpy.z() += 360;
}
auto rawData = rawData_.at(ppkIndex_);
ofs_ << setprecision(16) << "qx" << ", " << rawData.week << ", " << rawData.seconds
<< ", " << calibedBLH.x() << ", " << calibedBLH.y() << ", " << calibedBLH.z()
......
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