ATT_POWER b2fd9cb78b
refactor(tools): Restructure bagtrans tool and integrate into aimrt_cli (#68)
* CI: change build worlflow image tag from v20240927 to latest

* refactor(tools): Restructure bagtrans tool and integrate into aimrt_cli

- Integrate bagtrans functionality into aimrt_cli
- Update CMakeLists.txt and documentation to reflect these changes

* choro: format the code

* choro: change the document

* choro: remove the bagtrans options

---------

Co-authored-by: yuguanlin <yuguanlin@agibot.com>
2024-10-31 21:46:25 +08:00

1.0 KiB
Raw Blame History

转换 AimRT 的 bag 文件为 ROS2 的 bag 文件

简介

aimrt_cli 工具可以将 AimRT recordplayback 插件记录的 bag 文件转换为 ROS2 的 bag 文件其中ros2 消息会直接转换pb 消息则不会转换。

基本使用样例如下:

aimrt_cli trans -s [your_aimrtbag_source_dir] -o [your_output_dir]

您也可以使用 aimrt_cli -h/--help查看支持的命令行选项。

使用说明

aimrt_cli 工具的使用方法如下:

trans 命令的使用方法如下:

aimrt_cli trans -h, --help 会显示参数说明:

options:
  -h, --help            show this help message and exit
  -s SRC_DIR, --src_dir SRC_DIR
                        aimrtbag source directory.
  -o OUTPUT_DIR, --output_dir OUTPUT_DIR
                        directory you want to output your files.

其中 -s 参数为必填参数,表示 aimrtbag 的源目录,-o 参数为必填参数表示转换后的bag的输出目录如果输出目录不存在则会自动创建如果输出目录存在则会覆盖。