Skip to content

A map reading demo according to Apollo Auto map data structure.

Notifications You must be signed in to change notification settings

HUXING8/Apollo_Map_Read

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

转换proto文件

  • 摘取Apollo工程下的/modules/common_msgs/map_msgs的地图proto文件,使用python的protobuf库进行序列化。

读取地图文件

  • 地图文件为.txt格式,另有其他格式.xml,.bin文件,需要额外的读取方式。
  • get_pb_from_text_file()来自Apollo工程下"modules\tools\common\proto_utils.py",将.txt数据转化为pb数据。
  • "apollo_map.txt"为apollo工程下的demo地图文件,"lane_segment.txt"为摘取自前者的一条lane的数据。

绘图

  • 将序列化后的数据格式进行import导入,按照地图层级进行地图可视化绘制。
  • 各绘图函数来自Apollo工程下"modules\tools\mapshow\libs\map.py"

map

About

A map reading demo according to Apollo Auto map data structure.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages