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

Revision history [back]

click to hide/show revision 1
initial version

It looks like there are several problems here:

  1. The contents of this tutorial are _incredibly_ old. The rosmake command hasn't been used since before kinetic, which will be EOL next year.
  2. You should be creating your files in a ROS workspace in your home directory instead of trying to make changes to /opt/ros which is where binary packages are installed. See this page for more information about workspaces.
  3. For some reason, the launch file assumes that your rosbag will be in /opt/ros as well. For the reasons stated in 2, you should have it elsewhere (like your workspace) and replace the path $(find image_view)/test.bag with the full path to the rosbag.
  4. Based on the code in image_view/extract_images, the node will drop the images in the folder in which you run the launch file, not ~/.ros. This is why it is important to run the launch file somewhere that your user has write access to (like your home folder).

You should install the image_view package instead of building it from source. There is no need to build it from source as binaries exist for all current ROS versions. If you're using Ubuntu, the package name is ros-melodic-image-view. Once it's installed, source /opt/ros/melodic/setup.bash and your launch file should work.