提交 22810c25 编写于 作者: X Xiangquan Xiao

Scripts: Retire stale rosbag recording scripts.

上级 1fe2d8f0
#!/usr/bin/env bash
###############################################################################
# Copyright 2017 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${DIR}/apollo_base.sh"
function start() {
decide_task_dir $@
cd "${TASK_DIR}"
# Start recording.
record_bag_env_log
LOG="/tmp/apollo_record.out"
NUM_PROCESSES="$(pgrep -f "rosbag record" | grep -cv '^1$')"
if [ "${NUM_PROCESSES}" -eq 0 ]; then
nohup rosbag record --split --duration=1m -b 2048 \
/apollo/sensor/gnss/best_pose \
/apollo/sensor/gnss/corrected_imu \
/apollo/sensor/gnss/gnss_status \
/apollo/sensor/gnss/imu \
/apollo/sensor/gnss/ins_stat \
/apollo/sensor/gnss/odometry \
/apollo/sensor/gnss/rtk_eph \
/apollo/sensor/gnss/rtk_obs \
/apollo/sensor/velodyne64/compensator/PointCloud2 \
/apollo/localization/pose \
/apollo/localization/msf_gnss \
/apollo/localization/msf_lidar \
/apollo/localization/msf_status \
/apollo/drive_event \
/tf \
/tf_static \
/apollo/monitor \
/apollo/monitor/static_info < /dev/null > "${LOG}" 2>&1 &
fi
}
function stop() {
pkill -SIGINT -f record
}
function help() {
echo "Usage:"
echo "$0 [start] Record bag to data/bag."
echo "$0 stop Stop recording."
echo "$0 help Show this help message."
}
case $1 in
start)
shift
start $@
;;
stop)
shift
stop $@
;;
help)
shift
help $@
;;
restart)
shift
stop $@
start $@
;;
*)
start $@
;;
esac
#!/usr/bin/env bash
###############################################################################
# Copyright 2017 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${DIR}/apollo_base.sh"
function start() {
decide_task_dir $@
cd "${TASK_DIR}"
# Start recording.
record_bag_env_log
LOG="/tmp/apollo_record.out"
NUM_PROCESSES="$(pgrep -f "rosbag record" | grep -cv '^1$')"
if [ "${NUM_PROCESSES}" -eq 0 ]; then
nohup rosbag record --split --duration=1m -b 2048 \
/apollo/sensor/camera/obstacle/front_6mm \
/apollo/sensor/conti_radar \
/apollo/sensor/delphi_esr \
/apollo/sensor/gnss/best_pose \
/apollo/sensor/gnss/corrected_imu \
/apollo/sensor/gnss/gnss_status \
/apollo/sensor/gnss/imu \
/apollo/sensor/gnss/raw_data \
/apollo/sensor/gnss/ins_stat \
/apollo/sensor/gnss/odometry \
/apollo/sensor/gnss/rtk_eph \
/apollo/sensor/gnss/rtk_obs \
/apollo/sensor/mobileye \
/apollo/canbus/chassis \
/apollo/canbus/chassis_detail \
/apollo/control \
/apollo/control/pad \
/apollo/perception/obstacles \
/apollo/perception/traffic_light \
/apollo/navigation \
/apollo/relative_map \
/apollo/planning \
/apollo/prediction \
/apollo/routing_request \
/apollo/routing_response \
/apollo/localization/pose \
/apollo/drive_event \
/tf \
/tf_static \
/apollo/monitor \
/apollo/monitor/static_info < /dev/null > "${LOG}" 2>&1 &
fi
}
function stop() {
pkill -SIGINT -f record
}
function help() {
echo "Usage:"
echo "$0 [start] Record bag to data/bag."
echo "$0 stop Stop recording."
echo "$0 help Show this help message."
}
case $1 in
start)
shift
start $@
;;
stop)
shift
stop $@
;;
help)
shift
help $@
;;
restart)
shift
stop $@
start $@
;;
*)
start $@
;;
esac
#!/usr/bin/env bash
###############################################################################
# Copyright 2017 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${DIR}/apollo_base.sh"
function start() {
decide_task_dir $@
cd "${TASK_DIR}"
# Start recording.
record_bag_env_log
LOG="/tmp/apollo_record.out"
NUM_PROCESSES="$(pgrep -f "rosbag record" | grep -cv '^1$')"
if [ "${NUM_PROCESSES}" -eq 0 ]; then
nohup rosbag record --split --duration=10m -b 2048 \
/apollo/sensor/conti_radar \
/apollo/sensor/delphi_esr \
/apollo/sensor/gnss/best_pose \
/apollo/sensor/gnss/corrected_imu \
/apollo/sensor/gnss/gnss_status \
/apollo/sensor/gnss/imu \
/apollo/sensor/gnss/ins_stat \
/apollo/sensor/gnss/odometry \
/apollo/sensor/gnss/rtk_eph \
/apollo/sensor/gnss/rtk_obs \
/apollo/sensor/mobileye \
/apollo/canbus/chassis \
/apollo/canbus/chassis_detail \
/apollo/control \
/apollo/control/pad \
/apollo/navigation \
/apollo/perception/obstacles \
/apollo/perception/traffic_light \
/apollo/planning \
/apollo/prediction \
/apollo/routing_request \
/apollo/routing_response \
/apollo/localization/pose \
/apollo/drive_event \
/tf \
/tf_static \
/apollo/monitor \
/apollo/monitor/system_status \
/apollo/monitor/static_info < /dev/null > "${LOG}" 2>&1 &
fi
}
function stop() {
pkill -SIGINT -f record
}
function help() {
echo "Usage:"
echo "$0 [start] Record bag to data/bag."
echo "$0 stop Stop recording."
echo "$0 help Show this help message."
}
case $1 in
start)
shift
start $@
;;
stop)
shift
stop $@
;;
help)
shift
help $@
;;
restart)
shift
stop $@
start $@
;;
*)
start $@
;;
esac
#!/usr/bin/env bash
###############################################################################
# Copyright 2017 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${DIR}/apollo_base.sh"
function start() {
decide_task_dir $@
cd "${TASK_DIR}"
# Start recording.
record_bag_env_log
LOG="/tmp/apollo_record.out"
NUM_PROCESSES="$(pgrep -f "rosbag record" | grep -cv '^1$')"
if [ "${NUM_PROCESSES}" -eq 0 ]; then
nohup rosbag record --split --duration=1m -b 2048 \
/apollo/sensor/camera/traffic/image_short \
/apollo/sensor/camera/traffic/image_long \
/apollo/sensor/conti_radar \
/apollo/sensor/delphi_esr \
/apollo/sensor/gnss/best_pose \
/apollo/sensor/gnss/corrected_imu \
/apollo/sensor/gnss/gnss_status \
/apollo/sensor/gnss/imu \
/apollo/sensor/gnss/raw_data \
/apollo/sensor/gnss/ins_stat \
/apollo/sensor/gnss/odometry \
/apollo/sensor/gnss/rtk_eph \
/apollo/sensor/gnss/rtk_obs \
/apollo/sensor/mobileye \
/apollo/sensor/velodyne64/compensator/PointCloud2 \
/apollo/canbus/chassis \
/apollo/canbus/chassis_detail \
/apollo/control \
/apollo/control/pad \
/apollo/perception/obstacles \
/apollo/perception/traffic_light \
/apollo/planning \
/apollo/prediction \
/apollo/routing_request \
/apollo/routing_response \
/apollo/localization/pose \
/apollo/drive_event \
/tf \
/tf_static \
/apollo/monitor \
/apollo/monitor/static_info < /dev/null > "${LOG}" 2>&1 &
fi
}
function stop() {
pkill -SIGINT -f record
}
function help() {
echo "Usage:"
echo "$0 [start] Record bag to data/bag."
echo "$0 stop Stop recording."
echo "$0 help Show this help message."
}
case $1 in
start)
shift
start $@
;;
stop)
shift
stop $@
;;
help)
shift
help $@
;;
restart)
shift
stop $@
start $@
;;
*)
start $@
;;
esac
#!/usr/bin/env bash
###############################################################################
# Copyright 2018 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${DIR}/apollo_base.sh"
function start() {
decide_task_dir $@
cd "${TASK_DIR}"
# Start recording.
record_bag_env_log
LOG="/tmp/apollo_record.out"
NUM_PROCESSES="$(pgrep -f "rosbag record" | grep -cv '^1$')"
if [ "${NUM_PROCESSES}" -eq 0 ]; then
nohup rosbag record --split --duration=1m -b 2048 \
/apollo/sensor/camera/traffic/image_long \
/apollo/sensor/camera/traffic/image_short \
/apollo/sensor/gnss/best_pose \
/apollo/sensor/gnss/imu \
/apollo/sensor/gnss/odometry \
/apollo/sensor/gnss/raw_data \
/apollo/sensor/velodyne16/VelodyneScanUnified \
/apollo/sensor/velodyne16/PointCloud2 \
/apollo/sensor/velodyne16/compensator/PointCloud2 \
/apollo/sensor/velodyne64/VelodyneScanUnified \
/apollo/sensor/velodyne64/PointCloud2 \
/apollo/sensor/velodyne64/compensator/PointCloud2 \
/apollo/monitor/static_info < /dev/null > "${LOG}" 2>&1 &
fi
}
function stop() {
pkill -SIGINT -f record
}
function help() {
echo "Usage:"
echo "$0 [start] Record bag to data/bag."
echo "$0 stop Stop recording."
echo "$0 help Show this help message."
}
case $1 in
start)
shift
start $@
;;
stop)
shift
stop $@
;;
help)
shift
help $@
;;
restart)
shift
stop $@
start $@
;;
*)
start $@
;;
esac
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册