提交 29086aad 编写于 作者: A Aaron Xiao 提交者: Yajia Zhang

Tools: Dump drive event time as header time.

上级 0b916fbc
......@@ -49,7 +49,7 @@ class EventDumper(object):
for msg in reader.read_messages():
if msg.topic == kEventTopic:
drive_event.ParseFromString(msg.message)
msg_time = time.localtime(msg.timestamp/long(1e9))
msg_time = time.localtime(drive_event.header.timestamp_sec)
f.write(time.strftime("%Y-%m-%d %H:%M:%S", msg_time))
f.write(str(drive_event.type)+":")
f.write(drive_event.event.encode('utf-8')+'\n')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册