0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[ROS2] rosbagをrecordしてplayする

Last updated at Posted at 2022-11-12

[ROS2] rosbagをrecordしてplayする

基本的には公式のこのリンクをたどればわかると思います.以下ではもっと簡素に書きます.

record

以下のコマンドでトピックをrecordします.ここで大事なのがROS1と違って止めるときはrosnode killではなくCtrl+Cで止めます.

$ ros2 bag record /topic_name1 /topic_name2

play

以下のコマンドでトピックをplayします.ここで大事なのがROS1と違ってファイルではなくフォルダを指定します.

$ ros2 play rosbag2_year_month_day-hour_minute_second
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?