Using the --split option in a launch file for rosbag recording.
I am trying to make a dashcam launch file so to speak for my robot with the ros kinetic's new split feature for rosbag.
Started out, I used the command rosbag record --split --duration=5s --max-splits 6 -o /some/directory/ /topic1 /topic2
in terminal and everything worked as desired which give me the most recent 6 or 7 bags with 5s duration in desired folder.
Then I started to make the launch file. It looked like this:
<launch>
<node pkg="rosbag" name="dashcam" type="record" output="screen"
args = "--split --duration=5s --max-splits 6 -o /some/directory/ /topic1 /topic2
</node>
</launch>
This launch file still give me the bag file with the topics and in desired folder but not the split function. Did I miss something here? Thanks