提交 3c3bfc66 编写于 作者: J Jiangtao Hu 提交者: Qi Luo

script: add /apollo/meta topic to record version info.

上级 d2ed10f8
......@@ -49,6 +49,16 @@ function start() {
cd "${BAG_DIR}"
echo "Recording bag to: $(pwd)"
# record some meta info into bag
if [ -e /apollo/meta.ini ]; then
META_STR=`cat /apollo/meta.ini | sed 's/\[//g' | sed 's/\]//g' | sed 's/:/ /g' | tr '\n' ' '`
rostopic pub -1 -l /apollo/meta std_msgs/String "$META_STR" &
else
META_STR=`git rev-parse HEAD`
META_STR="git commit $META_STR"
rostopic pub -1 -l /apollo/meta std_msgs/String "$META_STR" &
fi
# Start recording.
LOG="/tmp/apollo_record.out"
NUM_PROCESSES="$(pgrep -c -f "rosbag record")"
......@@ -69,6 +79,7 @@ function start() {
/apollo/canbus/chassis_detail \
/apollo/control \
/apollo/control/pad \
/apollo/meta \
/apollo/perception/obstacles \
/apollo/perception/traffic_light \
/apollo/planning \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册