对bag数据的解析和操作

笔记:对rosbag数据的解析、操作

bag数据可视化 https://blog.youkuaiyun.com/MemoryD/article/details/105174327
从bag文件中提取图像 https://blog.youkuaiyun.com/lanyuxuan100/article/details/69988779
topic记录、回放、转.txt https://blog.youkuaiyun.com/tansir94/article/details/81513517
http://wiki.ros.org/bag_tools
https://github.com/facontidavide/rosbag_editor
http://wiki.ros.org/rosbag/Tutorials
用MATLAB对提取bag文件数据 https://blog.youkuaiyun.com/weixin_40712763/article/details/78909608
用ROS的订阅功能提取bag文件数据 https://blog.youkuaiyun.com/tanyong_98/article/details/105996052
从bag文件中读取topic数据 https://blog.youkuaiyun.com/lzy6041/article/details/107714396

estimating covariances https://github.com/5yler/metatron/issues/15
http://wiki.ros.org/rosbag/Code%20API#py_api
http://wiki.ros.org/rosbag/Cookbook
python解析bag文件 https://blog.youkuaiyun.com/sabrinalx/article/details/106501868
https://github.com/LRoel/collection/blob/2890ac462c68e3b0f7bf8f30b208bbdc458521ba/Python%E7%9B%B8%E5%85%B3/bag%E6%95%B0%E6%8D%AE%E5%A4%84%E7%90%86%E7%A8%8B%E5%BA%8F/rosbag_filter/GNSS_GPS.py
https://github.com/jsgaobiao/rosbag_parser/blob/0a1729a78fce4d2b685838f0b8faedc5c96d4485/scripts/rosbag2nav_odometry.py
https://github.com/ktk1501/SLAM_Wiki/wiki/1.-How-to-change-topic-names-and-frame-ID-in-rosbag-file
[“msg.header.frame_id” rosbag]
http://docs.ros.org/en/hydro/api/bag_tools/html/change__frame__id_8py_source.html
https://answers.ros.org/question/239943/rewriting-a-message-into-a-new-rosbag/

import rosbag
bag = rosbag.Bag('test.bag', 'w')  
bag.write('chatter', s)  bag.write('numbers', i)
bag.close()

bag = rosbag.Bag('test.bag')
for topic, msg, t in bag.read_messages(topics=['chatter', 'numbers']):
    print(msg)

gx = navMsg.pose.pose.position.x

odom = Odometry()
odom.header.frame_id = “odom”
odom.child_frame_id = self.base_frame
odom.header.stamp = now
odom.pose.pose.position.x = self.x
odom.pose.pose.position.y = self.y
odom.pose.pose.position.z = 0
odom.pose.pose.orientation = quaternion
odom.twist.twist.linear.x = vxy
odom.twist.twist.linear.y = 0
odom.twist.twist.angular.z = vth
self.odomPub.publish(odom)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值