Rosbag Record in Launch File to run_id Log location

asked 2015-03-23 12:02:47 -0600

ReneGaertner gravatar image

updated 2015-03-23 12:03:05 -0600

Hi,

i m just trying to record a .bag for one Topic in a ros .launch File to the log folder of the run_id.

to record is no problem but i want that it ll be recorded directly to the folder where it also saves the .log files from the started nodes.

If i start a Node in the launch file all logs are written to

/.ros/log/run_id/

e.g. /.ros/log/75232c28-d176-92d8-00032d18db0a

thats changes for every new start of roslaunch

now i want that the bag file is also saved in this log folder

with <node pkg="rosbag" type="record" name="test_record" args="-O mytest_record /test_topic" />

i only can record to /.ros/

can anyone help me on this launch problem?

thanks René

edit retag flag offensive close merge delete

Comments

1

This is the line I use in my launch file.

<node name="data_record" pkg="rosbag" type="record" args="--split --duration=1m -a -o /tmp/" res="" pawn="true"/>

It works perfectly for me. Do you have access to write in that /test_topic folder? Does the folder exist?

pwong gravatar imagepwong ( 2015-03-24 16:28:19 -0600 )edit