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-9.0.2.tar.gz (329.1 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-9.0.2-py3-none-any.whl (679.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for apollo_modules-9.0.2.tar.gz
Algorithm Hash digest
SHA256 ea79c79868065fc82f085835e7e9dfd1008d2c856a27e8dd4b4955565e609040
MD5 126a03b144b9b520f2d0cebd0699a01c
BLAKE2b-256 3f32e93c3a1bfede8c2b8c147fb38e637349638d8ee2f5e9cc1971141e04f97f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apollo_modules-9.0.2-py3-none-any.whl
  • Upload date:
  • Size: 679.5 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-9.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c96f8ada449ffed8d3ab01ab18a5238fdc7775248d6db8419d4145c41c2ae66e
MD5 89d5a86555f5c114c4ffe44a2a55fbd1
BLAKE2b-256 d739678bc44c8a21a7260486e9cebd4529aa26b0bf658b13185b2a9cb762943f

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