I am trying to extract the image from .bag file.Always this error pops up

asked 2018-11-25 13:15:15 -0500

updated 2018-11-25 13:32:37 -0500

gvdhoorn gravatar image

what is wrong in the launch file?

<launch>
 <node pkg="rosbag" type="play" name="rosbag" required="true" args="$(find training_data)/sensor_recording_camera_trackdrive.bag"/>
 <node name="extract" pkg="image_view" type="extract_images" respawn="false" required="true" output="screen" cwd="ROS_HOME">
  <remap from="image" to="/camera/image_raw"/>
 </node>
</launch>

error:

Invalid roslaunch XML syntax: syntax error: line 1, column 0
The traceback for the exception was written to the log file
edit retag flag offensive close merge delete

Comments

There is no error in this launch file where it claims there is. It's possible you're actually trying to launch a different file. Can you show us the command you're using to start ros launch and the paths of the relevant files.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-11-25 13:49:15 -0500 )edit

i am launching as roslaunch training_data bag_data.launch bag file path /home/saipreethamsata/catkin_ws/src/egn17-18 the bag file is in the training_data package

saipreethamsata gravatar image saipreethamsata  ( 2018-11-25 15:07:53 -0500 )edit

my image_view directory /opt/ros/kinetic/share/image_view

saipreethamsata gravatar image saipreethamsata  ( 2018-11-25 15:13:59 -0500 )edit

https://coderwall.com/p/qewf6g/how-to...

I have used this link to extract images. Thanks for help anyways.

saipreethamsata gravatar image saipreethamsata  ( 2018-11-25 15:44:06 -0500 )edit

What do you see when you type the following two commands:

roscd training_data/launch

less bag_data.launch

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-11-25 16:35:04 -0500 )edit

I could see bag_data.launch. <launch> 2 <node pkg="rosbag" type="play" name="rosbag" required="true" args="$(sensor_recording_camera_trackdrive.bag"/>

there is minor change in the data path of training_data.Should i modify my launch file accordingly?

saipreethamsata gravatar image saipreethamsata  ( 2018-11-26 07:31:59 -0500 )edit