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: see release https://pypi.org/project/apollo-modules/

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-11.0.0.tar.gz (377.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-11.0.0-py3-none-any.whl (812.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apollo_modules-11.0.0.tar.gz
  • Upload date:
  • Size: 377.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for apollo_modules-11.0.0.tar.gz
Algorithm Hash digest
SHA256 74f748ee507bc4582e2722e8c508070cecabc6e3756c073cc92ed85535df6966
MD5 77500ebc8242c57a9d9d3b2901f9107d
BLAKE2b-256 c868b3903fd760d716cd23cf12421725a8c8101234b0eb13cf16a660e4cbf7fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apollo_modules-11.0.0-py3-none-any.whl
  • Upload date:
  • Size: 812.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for apollo_modules-11.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c0cb959501411189f85edcad1796a9c5884d8ba08326f0b27305e9212376785
MD5 6fb764ba60944b7c8c50b706a6572cea
BLAKE2b-256 7794d9044053e13f9e361ada0723f3836e497a8218fb0b722e59c3257d7a5b81

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