From a134af8861c23b9847de5cb9c2207a7fb604449c Mon Sep 17 00:00:00 2001 From: Aaron Xiao Date: Mon, 4 Dec 2017 11:53:01 -0800 Subject: [PATCH] Scripts: Split rosbag by duration during recording. --- scripts/record_bag.sh | 2 +- scripts/record_bag_pnc.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/record_bag.sh b/scripts/record_bag.sh index 516aaae25c..76da7e2315 100755 --- a/scripts/record_bag.sh +++ b/scripts/record_bag.sh @@ -53,7 +53,7 @@ function start() { LOG="/tmp/apollo_record.out" NUM_PROCESSES="$(pgrep -c -f "rosbag record")" if [ "${NUM_PROCESSES}" -eq 0 ]; then - nohup rosbag record -b 2048 \ + nohup rosbag record --split --duration=1m -b 2048 \ /apollo/sensor/camera/traffic/image_short \ /apollo/sensor/camera/traffic/image_long \ /apollo/sensor/conti_radar \ diff --git a/scripts/record_bag_pnc.sh b/scripts/record_bag_pnc.sh index 452a3dfe1e..1887d9b2de 100755 --- a/scripts/record_bag_pnc.sh +++ b/scripts/record_bag_pnc.sh @@ -53,7 +53,7 @@ function start() { LOG="/tmp/apollo_record.out" NUM_PROCESSES="$(pgrep -c -f "rosbag record")" if [ "${NUM_PROCESSES}" -eq 0 ]; then - nohup rosbag record -b 2048 \ + nohup rosbag record --split --duration=10m -b 2048 \ /apollo/sensor/gnss/gnss_status \ /apollo/sensor/gnss/odometry \ /apollo/sensor/gnss/ins_stat \ -- GitLab