Skip to content

HUXING8/Apollo_Map_Read

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert proto file

  • Extract the map proto file from /modules/common_msgs/map_msgs under the Apollo project, and use the protobuf library in Python for serialization.

Read the map file

  • The map file is in the .txt format. There are also other format files such as .xml and .bin, which require additional reading methods.
  • get_pb_from_text_file() comes from "modules\tools\common\proto_utils.py" under the Apollo project, which converts the data in .txt format into protobuf (pb) data.
  • "apollo_map.txt" is the demo map file under the Apollo project, and "lane_segment.txt" is the data of one lane extracted from the former.

Drawing

  • Import the serialized data format, and perform map visualization drawing according to the map hierarchy.
  • Each drawing function comes from "modules\tools\mapshow\libs\map.py" under the Apollo project.

map

About

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

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages