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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
236032792a9ae02af94f8333758d7fa50a8ce9e98976c675d2bbe34b8cbce106
|
|
| MD5 |
b2d9bc58d57171fc2e325f75621f1f39
|
|
| BLAKE2b-256 |
53cca08064159f97c1ee32ebd5eaa9dff68f24197b521d84542c55ae68713ddc
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae0d3500f6aa8d29e5d68307f6bc5854c9fbc731e74d4a6db2ca3cd7b3a5c242
|
|
| MD5 |
3c3a0b13984c46bae7ada74049fa5a21
|
|
| BLAKE2b-256 |
ad7490aa5871086971b40cabc1fbe2bfe9b34d0513416c2473aa0e697091ddd5
|