GVINS视觉里程计、GNSS数据输出与保存位置

GVINS视觉里程计、GNSS数据输出与保存位置


视觉里程计结果输出

estimator\src\utility\visualization.cpp pubOdometry函数中(第151行)

        // write result to file
        ofstream foutC(VINS_RESULT_PATH, ios::app);
        foutC.setf(ios::fixed, ios::floatfield);
        foutC.precision(0);
        foutC << header.stamp.toSec() * 1e9 << ",";
        foutC.precision(5);
        foutC << estimator.Ps[WINDOW_SIZE].x() << ","
              << estimator.Ps[WINDOW_SIZE].y() << ","
              << estimator.Ps[WINDOW_SIZE].z() << ","
              << tmp_Q.w() << ","
              << tmp_Q.x() << ","
              << tmp_Q.y() << ","
              << tmp_Q.z() << ","
              << estimator.Vs[WINDOW_SIZE].x() << ","
              << estimator.Vs[WINDOW_SIZE].y() << ","
              << estimator.Vs[WINDOW_SIZE].z() << "," << endl;
        foutC.close();

GNSS结果输出

estimator\src\utility\visualization.cpp pubGnssResult函数中(第237行)

    // write GNSS result to file
    ofstream gnss_output(GNSS_RESULT_PATH, ios::app);
    gnss_output.setf(ios::fixed, ios::floatfield);
    gnss_output.precision(0);
    gnss_output << header.stamp.toSec() * 1e9 << ',';
    gnss_output << gnss_ts * 1e9 << ',';
    gnss_output.precision(5);
    gnss_output << estimator.ecef_pos(0) << ','
                << estimator.ecef_pos(1) << ','
                << estimator.ecef_pos(2) << ','
                << estimator.yaw_enu_local << ','
                << estimator.para_rcv_dt[(WINDOW_SIZE)*4+0] << ','
                << estimator.para_rcv_dt[(WINDOW_SIZE)*4+1] << ','
                << estimator.para_rcv_dt[(WINDOW_SIZE)*4+2] << ','
                << estimator.para_rcv_dt[(WINDOW_SIZE)*4+3] << ','
                << estimator.para_rcv_ddt[WINDOW_SIZE] << ','
                << estimator.anc_ecef(0) << ','
                << estimator.anc_ecef(1) << ','
                << estimator.anc_ecef(2) << '\n';
    gnss_output.close();

文件保存位置

home下output文件
在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值