Re: [ros-users] rosbag record from launch file

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy Leibs
Date:  
To: ros-users
Subject: Re: [ros-users] rosbag record from launch file
This is because roslaunch does not use your local path. If you
assumed you were using your local path, it wouldn't necessarily make
sense if you were to launch a node on a remote machine.

As present I believe your bagfiles are most likely ending up in ~/.ros

As Dan suggests, you should generally specify an absolute path for
your bag. In rosbag the option is now -o or -O (not -F).

On Tue, Aug 17, 2010 at 12:59 PM, Dan Lazewatsky
<> wrote:
> Try using -F to specify a full path for the output file.
> -Dan
>
> On Tue, Aug 17, 2010 at 2:41 PM, Ivan Dryanovski <>
> wrote:
>>
>> 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
>> _______________________________________________
>> ros-users mailing list
>>
>> https://code.ros.org/mailman/listinfo/ros-users
>
>
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>
>