Robotics StackExchange | Archived questions

How to use bag_tools

How do I run the bag_tools programs? I'm specifically looking to run the make_videos.py program to convert bag files to videos but my installation is unable to find it even though it is in the /opt/ros/indigo/lib/python2.7/dist-packages/bag_tools/ folder.

I'm using the command rosrun bag_tools make_video.py and I get the following error:

[rosrun] Couldn't find executable named make_video.py below /opt/ros/indigo/share/bag_tools

Is there some kind of a problem with my ros configuration? I'm using ros indigo on ubuntu 14.04

Thanks

Asked by atoz on 2017-03-15 14:09:26 UTC

Comments

Answers

This is an old question, but I ran into the same problem, so here's my solution: The package is broken (at least for make_video) as it lacks the executables that need to be compiled from c++. So you need to build and install it from source, which worked out without problems.

Asked by Felix Endres on 2017-04-21 06:04:26 UTC

Comments

@Felix How do you install from source , exactly? Is it an addition/variation of this command-. rosdep install --from-paths src --ignore-src --rosdistro melodic ?

Thank you!

Asked by ambareesh on 2019-08-21 14:43:36 UTC

See the wiki tutorial for building. When it is a cmake package (there is a CMakeLists.txt file), my standard approach is to source the workspace it is in, go to the package directory and execute mkdir build; cd build; cmake ..; make -j4. That will configure your build and compile it in the "build" folder. To install, you can use make install. The file build/install_manifest.txt will tell you which files were installed where.

Asked by Felix Endres on 2019-08-29 06:09:10 UTC