ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

How to use bag_tools

asked 2017-03-15 14:09:26 -0500

atoz gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-04-21 06:04:26 -0500

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.

edit flag offensive delete link more

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!

ambareesh gravatar image ambareesh  ( 2019-08-21 14:43:36 -0500 )edit

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.

Felix Endres gravatar image Felix Endres  ( 2019-08-29 06:09:10 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-03-15 14:09:26 -0500

Seen: 1,674 times

Last updated: Apr 21 '17