Try using -F to specify a full path for the output file.<div><br></div><div>-Dan<br><br><div class="gmail_quote">On Tue, Aug 17, 2010 at 2:41 PM, Ivan Dryanovski <span dir="ltr"><<a href="mailto:ivan.dryanovski@gmail.com">ivan.dryanovski@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
Can rosbag be invoked from a .launch file? I tried the following:<br>
<br>
<launch><br>
  <node pkg="rosbag" type="record" name="record" output="screen" args="-a"/><br>
</launch><br>
<br>
It gives me the same console output as when i run "rosbag record -a".<br>
This is the output after runnling the launch file:<br>
<br>
<br>
... logging to /home/idryanov/.ros/log/24cb0a36-aa35-11df-82d4-00156d841fe0/roslaunch-idryanov-desktop-13809.log<br>
Checking log directory for disk usage. This may take awhile.<br>
Press Ctrl-C to interrupt<br>
Done checking log file disk usage. Usage is <1GB.<br>
<br>
started roslaunch server <a href="http://192.168.1.145:48967/" target="_blank">http://192.168.1.145:48967/</a><br>
<br>
SUMMARY<br>
========<br>
<br>
NODES<br>
  /<br>
    record (rosbag/record)<br>
<br>
ROS_MASTER_URI=<a href="http://192.168.1.33:11311" target="_blank">http://192.168.1.33:11311</a><br>
<br>
core service [/rosout] found<br>
process[record-1]: started with pid [13818]<br>
[ INFO] [1282073779.153551281]: Recording to 2010-08-17-15-36-19.bag.<br>
[ INFO] [1282073780.179935257]: Subscribing to /splitter/rvs<br>
[ INFO] [1282073780.204881536]: Subscribing to<br>
/hokuyo_node/parameter_descriptions<br>
[ INFO] [1282073780.243645891]: Subscribing to /splitter/m3<br>
[ INFO] [1282073780.282756839]: Subscribing to /splitter/m1<br>
[ INFO] [1282073780.297498781]: Subscribing to /pose2D<br>
[ INFO] [1282073780.320485431]: Subscribing to /right_floor_altimeter/height<br>
[ INFO] [1282073780.351051293]: Subscribing to /rosout<br>
[ INFO] [1282073780.383265250]: Subscribing to /scan<br>
[ INFO] [1282073780.488726436]: Subscribing to /tf<br>
[ INFO] [1282073780.645444289]: Subscribing to /asctec_proc/imu<br>
[ INFO] [1282073780.755088806]: Subscribing to /rosout_agg<br>
[ INFO] [1282073780.899634911]: Subscribing to /hokuyo_node/parameter_updates<br>
[ INFO] [1282073780.961643402]: Subscribing to /diagnostics<br>
[ INFO] [1282073781.019327722]: Subscribing to /splitter/mvs<br>
[ INFO] [1282073781.086277163]: Subscribing to /autopilot/IMU_CALCDATA<br>
[ INFO] [1282073781.136651245]: Subscribing to /splitter/m2<br>
[ INFO] [1282073781.221266595]: Subscribing to /splitter/lvs<br>
^C[record-1] killing on exit<br>
[ INFO] [1282073793.525910011]: Closing 2010-08-17-15-36-19.bag.<br>
shutting down processing monitor...<br>
... shutting down processing monitor complete<br>
done<br>
<br>
<br>
<br>
<br>
<br>
However, at the end, there is no .bag file saved to the current directory.<br>
<font color="#888888"><br>
Ivan Dryanovski<br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</font></blockquote></div><br></div>