提交 62826999 编写于 作者: D Dong Li 提交者: Jiangtao Hu

tools: fix filter planning

上级 e436d4f4
......@@ -95,6 +95,7 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
function filter() {
target=""
name=$(basename $1)
if $is_perfect_control; then
target="$2/${name%.*}.pc.bag"
rosbag filter $1 "$target" "$perfect_control_topic"
......@@ -114,10 +115,9 @@ function filter() {
}
for bag in $@; do
name=$(basename $bag)
folder=""
if [ -z $target_dir ] ; then
folder="${bag%/*}"
folder="$(dirname $bag)"
else
folder=$target_dir
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册