Skip to main content

This is a package including baidu apollo' proto modules

Project description

Apollo Python Protobuf

This project provides Python bindings for the Apollo modules' protobufs, enabling seamless integration and usage of Apollo’s protobuf definitions in Python.

Installation

Option 1: Install via pip

pip install apollo_modules==[version]  # Supported versions: '7.0.1', '8.0.1', '9.0.1'

From apollo 8.0, the structure has been changed!

Option 2: Build from Source

git clone -b [version] https://github.com/MingfeiCheng/ApolloPyProto.git
cd ApolloPyProto
pip install -e .

Usage

1. Verify Installation

To verify the installation, open a Python shell and run the following:

python
>>> import apollo_modules
>>> from apollo_modules.modules.common_msgs.planning_msgs.planning_pb2 import ADCTrajectory

If there are no errors, the installation was successful, and the package is ready to use.

2. Example Usage

Here’s an example of importing the planning_pb2 protobuf used in Apollo’s planning module:

from apollo_modules.modules.common_msgs.planning_msgs.planning_pb2 import ADCTrajectory

(Optional) Generate Python Protobuf Files from the Apollo Project

We provide a shell script to automatically generate the Python versions of the protobufs from Apollo’s modules. Use the following command:

bash proto_generate.sh /path/to/apollo_root /path/to/output

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apollo_modules-8.0.2.tar.gz (302.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apollo_modules-8.0.2-py3-none-any.whl (558.0 kB view details)

Uploaded Python 3

File details

Details for the file apollo_modules-8.0.2.tar.gz.

File metadata

  • Download URL: apollo_modules-8.0.2.tar.gz
  • Upload date:
  • Size: 302.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for apollo_modules-8.0.2.tar.gz
Algorithm Hash digest
SHA256 236032792a9ae02af94f8333758d7fa50a8ce9e98976c675d2bbe34b8cbce106
MD5 b2d9bc58d57171fc2e325f75621f1f39
BLAKE2b-256 53cca08064159f97c1ee32ebd5eaa9dff68f24197b521d84542c55ae68713ddc

See more details on using hashes here.

File details

Details for the file apollo_modules-8.0.2-py3-none-any.whl.

File metadata

  • Download URL: apollo_modules-8.0.2-py3-none-any.whl
  • Upload date:
  • Size: 558.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for apollo_modules-8.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae0d3500f6aa8d29e5d68307f6bc5854c9fbc731e74d4a6db2ca3cd7b3a5c242
MD5 3c3a0b13984c46bae7ada74049fa5a21
BLAKE2b-256 ad7490aa5871086971b40cabc1fbe2bfe9b34d0513416c2473aa0e697091ddd5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page