Extract size info from ros2 bag in shell script

59 views Asked by At

In ROS1, one can use 'rosbag info -y -k size bagName' to get the bag size information. How can I do it in ROS2 with Shell Script? Thank you in advance!

"ros2 bag info -h" does not have -y -k choices. I do not want to install ROS1 to my PC. I hope all the commands are limited in ROS2.

1

There are 1 answers

1
Sux On

ros2 bags are just folder so you can use "du -hs folder_name/" to see the amount of space it uses