AIT-Assistive-Autonomous-Systems / ros2bag_tools

Tool extensions for ros2bag cli
122 stars 34 forks source link

How to use this package? #1

Closed Kaju-Bubanja closed 2 years ago

Kaju-Bubanja commented 2 years ago

I downloaded the repo into src/util/ros2bag_tools. Then I used following command: colcon build --symlink-install --packages-select rosbag2_tools the package successfully builds in 3.73s and then I resource the workspace. but when trying ros2 bag export I get: Usage error invalid choice 'export'. Like the verb doesn't exist. I'm using Ubuntu 20.04 and Ros rolling.

Kaju-Bubanja commented 2 years ago

Ok I had to move the package inside ros2/rosbag2 and now after compiling and sourcing I get the verb extensions, although now I get the error KeyError["video"]. But after recompiling the whole workspace it works now.

Kaju-Bubanja commented 2 years ago

Also thanks a bunch, this package works fantastic for generating videos and the code is really clean :)

jeremy-shannon commented 1 year ago

It would be helpful to put some detailed installation instructions in the readme.

devrite commented 1 year ago

Hi @jeremy-shannon,

regarding install: please open an issue if any ros specific dependencies are missing in the package.xml. Otherwise it is the same procedure as already officially documented for building workspaces or installing dependencies via rosdep. See: https://docs.ros.org/en/rolling/Tutorials/Beginner-Client-Libraries/Creating-A-Workspace/Creating-A-Workspace.html#resolve-dependencies.

cynosure4sure commented 1 month ago

I think the confusion is that there are two packages inside the ros2bag_tools folder, namely ros2bag_tools and rosbag2_tools (notice the position of 2). If you do colcon build --packages-select ros2bag_tools it will fail because the other one needs to be build first so colcon build --packages-select ros2bag_tools rosbag2_tools should do the trick. Thank you for the useful package