save file in different directory - launch file

asked 2016-06-28 04:04:37 -0600

ROSkinect gravatar image
<launch>
  <node pkg="rosbag" type="play" name="rosbagr" args="$(find bag_to_depth_image)bagfile/newrgb.bag"/> 
  <node name="extract_r" pkg="bag_to_depth_image" type="extract_images" respawn="false" output="screen" cwd="node">
    <remap from="image" to="/camera/rgb/image_raw"/>
  </node>
</launch>

That's my launch file. I want to change the directory where the rosbag file is saved, with cwd I have only choice between node and home cwd="ROS_HOME|node"

I have to record a very big file with thousands of images from depth and rgb. So i want to save the rosbag file in a different location.

edit retag flag offensive close merge delete

Comments

Can't you just give that to your program as a command line argument?

dornhege gravatar image dornhege  ( 2016-06-28 07:18:25 -0600 )edit

I've been following this tutorial And I don't know how to do it from command line

ROSkinect gravatar image ROSkinect  ( 2016-06-28 07:27:51 -0600 )edit