首页 > 解决方案 > ros2:错误:无法识别的参数:--qos-profile-overrides-path profile.yaml

问题描述

我正在使用 ROS2 eloquent dist。当我尝试使用上述命令播放 rosbag 时,出现以下错误

ros2: error: unrecognized arguments: --qos-profile-overrides-path profile.yaml

我正在使用的命令:

ros2 bag record sample.bag --qos-profile-overrides-path /home/ubuntu/profile.yaml

你能帮我理解这里的问题吗

标签: pythonros2

解决方案


您需要在录制时指定主题并使用-o标志来指定输出文件。

ros2 bag record -a -o sample.bag --qos-profile-overrides-path /home/ubuntu/profile.yaml


推荐阅读