📦 A42 Protobuf Bindings (a42-proto)
Dieses Python-Paket enthält die Protobuf-Bindings für Sensordaten im A42-Format. Es erlaubt das einfache Einlesen und Verarbeiten von LiDAR-Scans und zugehörigen Objektinformationen.
🔽 Datendownload
📥 Installation
pip install a42-proto
🧪 Beispielskripte
analyze_proto.py– aggregierte Auswertung über Frames, Scans, Punkte, Objektevisualize_pointcloud.py– zeigt eine Punktwolke in Open3D
📄 Data Structure
Frame
frame_timestamp_ns– global timestamp in nanosecondslidars[]– list ofLidarScanmessagesframe_id- unique identifier for the frame
Example:
first_scan = frame.lidars[0]
LidarScan
laser_name– sensor identifier (LaserNameenum)scan_timestamp_ns– timestamp of this scan (ns)pointcloud– LiDAR point cloud (PointCloud)calibration– sensor calibration (SensorCalibration)object_list[]– detected objects (ObjectBBox)
Example:
objects = scan.object_list[0]
PointCloud
All fields are stored as byte arrays and must be decoded into NumPy arrays.
cartesian– XYZ coordinates (float32, shape N×3)intensity– intensity values (uint16)ambient– ambient light / signal quality (uint16)velocity– point-wise velocity (float32)reflectivity– reflectivity values (uint16)timestamp_offset– per‑point timestamp offset (uint64ns)channel_id– channel index (uint16)
Example decoding:
import numpy as np
xyz = np.frombuffer(pc.cartesian, dtype=np.float32).reshape(-1, 3)
intensity = np.frombuffer(pc.intensity, dtype=np.uint16)
ObjectBBox
id– object IDtimestamp_ns– timestamp of the object (ns)position {x,y,z}– center positiondimension {x,y,z}– object sizeorientation {x,y,z,w}– quaternion orientationvelocity {x,y,z}– velocity vectorpointcloud– sub‑pointcloud inside the bounding boxobj_class– semantic classobj_class_score– classification confidence
Example:
pos = obj.position
SensorCalibration
sensor_name– sensor identifierextrinsic[]– 4×4 row‑major extrinsic matrixvertical_fov,horizontal_fov– field of viewvertical_scanlines,horizontal_scanlines– resolutionhorizontal_angle_spacing– angle spacing (deg)beam_altitude_angles[]– altitude anglesbeam_azimuth_angles[]– azimuth anglesframe_mode– scan modescan_pattern– scan pattern identifier
Example:
vfov = scan.calibration.vertical_fov
Metadata
Release files for a42-proto 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| a42_proto-0.4.2.tar.gz | 4.1 kB | Without provenance | Details for a42_proto-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| a42_proto-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for a42_proto-0.4.2-py3-none-any.whl |
Total release size: 9.5 kB
Release files / a42_proto-0.4.2.tar.gz
| Download URL | a42_proto-0.4.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00aa4f51236ccb6a26de92e9601dc1b2db1fd3ff9e6954f72750b0f8bbb70714
|
|
BLAKE2b-256 checksum How to use checksums |
42e7e74c89c38cc6287337b2f7705a48259d22859fe8adfe8718a9b50a344a9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Release files / a42_proto-0.4.2-py3-none-any.whl
| Download URL | a42_proto-0.4.2-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1406ac6e0d83637cdc8c60371d3cabfe759e5653fb02db8843fbc1a7ffaa61ab
|
|
BLAKE2b-256 checksum How to use checksums |
ff7897ac6ff31ba974154c29318bd6b572b950835c686c55b9b5992e62a6068c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Security for a42-proto 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.