提交 c22b6eda 编写于 作者: Z zhouyao 提交者: Liangliang Zhang

Localization: fix order of fstream operation in PoseInterpolation

上级 612555ea
......@@ -80,7 +80,6 @@ void PosesInterpolation::WritePCDPoses() {
std::ofstream fout;
fout.open(out_poses_path_.c_str(), std::ofstream::out);
fout.setf(std::ios::fixed, std::ios::floatfield);
fout.precision(6);
if (fout.is_open()) {
for (size_t i = 0; i < out_poses_.size(); i++) {
......@@ -94,6 +93,7 @@ void PosesInterpolation::WritePCDPoses() {
double qz = quatd.z();
double qr = quatd.w();
fout.precision(6);
fout << out_indexes_[i] << " " << timestamp << " " << transd.x() << " "
<< transd.y() << " " << transd.z() << " " << qx << " " << qy << " "
<< qz << " " << qr << "\n";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册