Skip to content

chucklqsun/python_protobuf_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Who am I

I am a repository used to read/write protobuf file for a great variety of applications

Applications:

  1. A official tutorial demo in folder ./demo
  2. Read Apollo Radar Data (./apollo/read_radar_data.py)

how to compiler protobuf

  • Define message formats in a .proto file.
  • run below command.
protoc -I=$SRC_DIR --python_out=$DST_DIR PATH_TO_YOUR_PROTO_FILE.proto
# For example:
protoc -I=./python_protobuf_demo --python_out=./python_protobuf_demo ./python_protobuf_demo/proto/conti_radar.proto
  • xxxx_pb2.py is generated by protoc, for example, "python_protobuf_demo/apollo/proto/conti_radar_pb2.py".

About

protobuf application pool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages