Python gRPC stubs for MAVLink2gRPC
Project description
MAVLink2gRPC Python Client Stubs
This package contains the auto-generated gRPC and Protocol Buffer client stubs for communicating with a MAVLink2gRPC bridge server.
Installation
pip install mavlink2grpc-proto
Usage
import grpc
import mavlink_bridge_pb2
import mavlink_bridge_pb2_grpc
from mavlink import common_pb2
# Connect to the gRPC bridge
channel = grpc.insecure_channel('localhost:50051')
stub = mavlink_bridge_pb2_grpc.MavlinkBridgeStub(channel)
# Subscribe to HEARTBEAT messages
stream_filter = mavlink_bridge_pb2.StreamFilter(
system_id=0,
component_id=0,
message_ids=[0] # HEARTBEAT message ID is 0
)
for message in stub.StreamMessages(stream_filter):
if message.has_heartbeat:
print(f"Received HEARTBEAT: Type {message.heartbeat.type}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mavlink2grpc_proto-0.1.0.tar.gz
(50.1 kB
view details)
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 mavlink2grpc_proto-0.1.0.tar.gz.
File metadata
- Download URL: mavlink2grpc_proto-0.1.0.tar.gz
- Upload date:
- Size: 50.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e06bf9c7b9ec92226adeced088805c0d4ba01f0dea63e146ee033dacfda5d98b
|
|
| MD5 |
537e8f2997eca0d8ac3d1496534b6a80
|
|
| BLAKE2b-256 |
6c9b850f9f1abcf588368e08e84bb7fa0f4a7ba4df7c1eb2961e142a05701d87
|
File details
Details for the file mavlink2grpc_proto-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mavlink2grpc_proto-0.1.0-py3-none-any.whl
- Upload date:
- Size: 52.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f779fc9835b630ff888c0f18a4481ae626987061d6704aee6e5fb8c598d98305
|
|
| MD5 |
9c6d9281b11d4d079ef43e58b687d2cf
|
|
| BLAKE2b-256 |
79acb1e8719edcde25862295fd0708022f8fbdc51a50c4f17f9ef1ab101a34dc
|