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'

Note that, to accommodate changes across different versions of Apollo, we provide multiple versions of our package.

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.planning.proto.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.planning.proto.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-7.0.2.tar.gz (498.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-7.0.2-py3-none-any.whl (762.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apollo_modules-7.0.2.tar.gz
  • Upload date:
  • Size: 498.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-7.0.2.tar.gz
Algorithm Hash digest
SHA256 853b68389475603b64cb7a56d2b0f06abc7ad172c07c8e6c5ddaf5d396dba5df
MD5 aa0826469dead5cc060748dc13ba66ba
BLAKE2b-256 be636d001ada3aade6cf17a6841e841bd2b0d8bb4219fecf4ba2acf18ef49ffe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apollo_modules-7.0.2-py3-none-any.whl
  • Upload date:
  • Size: 762.1 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-7.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2257977c9e924aa5a9eab16e11d686f58a3259aad1b8b9766ddacf7f7d1e9344
MD5 66517ac64075da2753e42a20ead51809
BLAKE2b-256 e1d3a4ab16788ca53077154e0087e8b6621b24361326456990b01b74df73459d

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