rosbag record录制

本文介绍了ROS中使用rosbag record命令进行topics录制的操作,包括参数语法、具体实例以及如何查看bag文件所包含的topics信息。
摘要由CSDN通过智能技术生成

1.topics 录制参数及语法

$ rosbag record --help  #显示详细参数及语法

Options:
  -h, --help            show this help message and exit
  -a, --all             record all topics
  -e, --regex           match topics using regular expressions
  -x EXCLUDE_REGEX, --exclude=EXCLUDE_REGEX
                        exclude topics matching the follow regular expression
                        (subtracts from -a or regex)

2.实例rosbag record topics


rosbag record /front_scan /scan /odom /imu -o 1 # -o 1 录制某个节点信息,且命名文件1
rosbag record -a -O $1 -x "/monitor/(.*)" # -x 过滤掉某个的“ ”topic,-a 录制其它所有的topic

3.查看bag包订阅的topics

$ rosbag info .ros/_2020-05-</
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值