image_view seems to run, but the images are nowhere to be found
I am attempting to retrieve image files from a rosbag (following this tutorial: http://www.ros.org/wiki/rosbag/Tutorials/Exporting%20image%20and%20video%20data).
I roscd into the imageview package, but I have to sudo every command because it won't let me do anything without it. I moved a rosbag named test.bag into the imageview package directory. I included this launch file (with my own topic name replacing the default one) and named it export.launch.
<launch>
<node pkg="rosbag" type="rosbag" name="rosbag" args="play -d 2 $(find image_view)/test.bag"/>
<node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="node">
<remap from="image" to="/camera/image_raw"/>
</node>
</launch>
Then, I do roslaunch export.launch. Everything seems to work perfectly. At the end of the output I get this:
(previous output omitted for space)
[ INFO] [1315089551.528614039]: Saved image frame0287.jpg
[rosbag-1] process has finished cleanly.
log file: /home/user/.ros/log/512670bc-d67a-11e0-b5f3-080027433aa6/rosbag-1*.log
I then attempt to retrieve the .jpg files and they are nowhere to be found! They are not in the image_view package directory, or anywhere that I can find.
Does anyone know where they are? Or what I'm doing wrong? Thanks a lot!
Asked by gavinmachine on 2011-09-03 11:05:15 UTC
Answers
When run by roslaunch, processes start in the .ros folder. Check for files inside ~/.ros (or a subdirectory thereof).
Asked by Eric Perko on 2011-09-03 14:24:31 UTC
Comments
I looked in ~/.ros, the only sub-directories are "log" and "rosmake." Inside those directories are a whole bunch of directories name like this: "6d8a78c8-c902-11e0-aaab-080027433aa6." Otherwise, there a few of cache files, etc. I did a search, no .jpgs. Could I be doing something wrong? Thanks!
Asked by gavinmachine on 2011-09-03 14:40:18 UTC
I have the same problem with you. Have you solved the problem yet?
Asked by pipipan on 2019-01-22 04:51:19 UTC
Comments
Diamondback
Asked by gavinmachine on 2011-09-08 18:15:42 UTC
Is this on Diamondback or Electric?
Asked by Eric Perko on 2011-09-08 03:41:57 UTC