使用evo评估INGVIO

运行GVINS-OpenDatasets的sports_field.bag文件

轨迹生成了bag文件,使用python文件转换成txt格式便于进行评估

我使用的是

import rosbag
from geometry_msgs.msg import PoseWithCovariance

def bag_to_tum(bag_file, topic_name, output_file):
    with open(output_file, 'w') as f:
        bag = rosbag.Bag(bag_file)
        for topic, msg, t in bag.read_messages(topics=[topic_name]):
            pose = msg.pose.pose
            timestamp = msg.header.stamp.to_sec()
            line = "{} {} {} {} {} {} {} {}\n".format(timestamp, pose.position.x, pose.position.y, pose.position.z, pose.orientation.x, pose.orientation.y, pose.orientation.z, pose.orientation.w)
            f.write(line)
        bag.close()
//我的名称是这样的,可以自行修改
bag_file = 'ingvio_m.bag'
topic_name = '/ingvio_estimator/pose_w'
output_file = 'output.txt'
bag_to_tum(bag_file, topic_name, output_file)

转换以后使用evo进行评估

运行,只展示了monocular情况下的轨迹评估

evo_ape tum sports_field_rtk_result.tum output.txt -va --plot_mode=xyz -p
evo_rpe tum sports_field_rtk_result.tum output.txt -va --plot_mode=xyz -p

  • 8
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值