[ros-users] rosbag record from launch file

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ivan Dryanovski
Date:  
To: ros-users
Subject: [ros-users] rosbag record from launch file
Hi,

Can rosbag be invoked from a .launch file? I tried the following:

<launch>
<node pkg="rosbag" type="record" name="record" output="screen" args="-a"/>
</launch>

It gives me the same console output as when i run "rosbag record -a".
This is the output after runnling the launch file:


... logging to /home/idryanov/.ros/log/24cb0a36-aa35-11df-82d4-00156d841fe0/roslaunch-idryanov-desktop-13809.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://192.168.1.145:48967/

SUMMARY
========

NODES
  /
    record (rosbag/record)


ROS_MASTER_URI=http://192.168.1.33:11311

core service [/rosout] found
process[record-1]: started with pid [13818]
[ INFO] [1282073779.153551281]: Recording to 2010-08-17-15-36-19.bag.
[ INFO] [1282073780.179935257]: Subscribing to /splitter/rvs
[ INFO] [1282073780.204881536]: Subscribing to
/hokuyo_node/parameter_descriptions
[ INFO] [1282073780.243645891]: Subscribing to /splitter/m3
[ INFO] [1282073780.282756839]: Subscribing to /splitter/m1
[ INFO] [1282073780.297498781]: Subscribing to /pose2D
[ INFO] [1282073780.320485431]: Subscribing to /right_floor_altimeter/height
[ INFO] [1282073780.351051293]: Subscribing to /rosout
[ INFO] [1282073780.383265250]: Subscribing to /scan
[ INFO] [1282073780.488726436]: Subscribing to /tf
[ INFO] [1282073780.645444289]: Subscribing to /asctec_proc/imu
[ INFO] [1282073780.755088806]: Subscribing to /rosout_agg
[ INFO] [1282073780.899634911]: Subscribing to /hokuyo_node/parameter_updates
[ INFO] [1282073780.961643402]: Subscribing to /diagnostics
[ INFO] [1282073781.019327722]: Subscribing to /splitter/mvs
[ INFO] [1282073781.086277163]: Subscribing to /autopilot/IMU_CALCDATA
[ INFO] [1282073781.136651245]: Subscribing to /splitter/m2
[ INFO] [1282073781.221266595]: Subscribing to /splitter/lvs
^C[record-1] killing on exit
[ INFO] [1282073793.525910011]: Closing 2010-08-17-15-36-19.bag.
shutting down processing monitor...
... shutting down processing monitor complete
done





However, at the end, there is no .bag file saved to the current directory.

Ivan Dryanovski