当前位置:网站首页>Rosbag use command
Rosbag use command
2022-06-22 15:50:00 【Wang bupian】
rosbag It's based on ros The topic data recording and playback tool of the system , in application , have access to bag File to save and restore the running state of the system , It is often used for initial data acquisition and DEBUG.
Commonly used instructions include :
1 - record: Record a with the specified topic bag package
2 - info: Display a bag Basic information about the package , For example, what topics are included
3 - play: Play back one or more bag package
4 - reindex: Re index one or more corruption bag package
One 、bag Recording
(1) Record all topic data
rosbag record -a
(2) Record the data of the specified topic
rosbag record <topic_name1> <topic_name2> <topic_name3> …
(3) Specify package name
rosbag record -O <topic_name1> <topic_name2> <topic_name3> …
Be careful :-O Need to be capitalized
Use it with your own camera commands **************
1. Use ros Turn on the camera and IMU :roslaunch realsense2_camera lee_test.launch
2. adjustment IMU Frequency of release :rosrun topic_tools throttle messages /camera/imu 150.0 /imu
3. The recording command is :rosbag record -O D455 /imu /camera/color/image_raw
Two 、bag Information view
rosbag info The instruction can be the topic name contained in the packet , Number of topics , Topic message type and other information :
(1)rosbag info
# 3、 ... and 、bag Play
(1) Playback assignment bag
rosbag play
(2) Play back all the files in the current directory bag
rosbag play *
(3) From the specified time (n = Specify time s) Start playback bag
rosbag play -s n
(4) Delay for a specified time (n = Delay Time s) Start playback bag
rosbag play -d n
(5) Play the specified time (n = Specify the number of seconds ) Of bag
rosbag play -u n
(6) From the specified time (n = Starting time s) Start playing at the specified time (m = Specify the playback time s) Of bag
rosbag play -s n -u m
(7) At the specified magnification (n = Magnification ) The playback bag
rosbag play -r n
3、 ... and 、bag Repair
Playback failed , Tips reindex , be :
rosbag reindex
Link to the original text :https://blog.csdn.net/chen_mp/article/details/123381936
边栏推荐
- ORB_VI思想框架
- "Software defines the world, open source builds the future" 2022 open atom global open source summit will open at the end of July
- How safe is the new bond
- 向量1(类和对象)
- stack和queue的模拟实现
- 打新债安全性有多高
- 推進兼容適配,使能協同發展 GBase 5月適配速遞
- 洛谷P2466 [SDOI2008] Sue 的小球 题解
- The bank card identification function of Huawei machine learning service enables bank card identification and binding with one click
- Is pioneer futures reliable? How to open a futures account safely?
猜你喜欢

Cross border integration, creativity and innovation to help improve the influence of cultural tourism night tour

How MySQL modifies the storage engine to InnoDB

Ml notes matrix fundamental, gradient descent

mysql的concat()函数如何用

Ros2 pre basic tutorial | Xiaoyu teaches you how to use cmake dependency lookup process

Jenkins 通过检查代码提交自动触发编译

Exploration and practice of dewu app data simulation platform

模板特例化 template<>

Cve-2022-0847 (privilege lifting kernel vulnerability)

On the routing tree of gin
随机推荐
模板特例化 template<>
大佬们好,初次使用MySQL cdc 报错
Development status of full color LED display
Quickly play ci/cd graphical choreography
FreeRTOS task priority and interrupt priority
得物App数据模拟平台的探索和实践
二分查找(整数二分)
向量6(继承)
TDengine 连接器上线 Google Data Studio 应用商店
【newman】postman生成漂亮的测试报告
Good wind relies on strength – code conversion practice of accelerating SQL Server Migration with babelfish
小程序开发----自定义有效期缓存
High precision calculation
程序替换函数
“软件定义世界,开源共筑未来” 2022开放原子全球开源峰会7月底即将开启
C语言学习-18-makefile文件编写例子以及如何生成、调用动态库
Cve-2022-0847 (privilege lifting kernel vulnerability)
How can ordinary people make 1million yuan a year?
The bank card identification function of Huawei machine learning service enables bank card identification and binding with one click
Hello, big guys. Error reporting when using MySQL CDC for the first time