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.0.1.tar.gz
(43.4 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.0.1.tar.gz.
File metadata
- Download URL: mavlink2grpc_proto-0.0.1.tar.gz
- Upload date:
- Size: 43.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5d61253ce0f40992dea1e66ec098d00789b3f373a9712da575d648f9ce761a0
|
|
| MD5 |
f657bd641f9eab2caf3a1da68b29d703
|
|
| BLAKE2b-256 |
bdf9f6e85d06ae176e1c989d369af654bd1ffd0819f82b8c04315c08ceb5bda4
|
File details
Details for the file mavlink2grpc_proto-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mavlink2grpc_proto-0.0.1-py3-none-any.whl
- Upload date:
- Size: 44.6 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 |
234c665306cb4beca23f5d090a01cd8351deb1dc3562e08b3c5201c3f3a59901
|
|
| MD5 |
9b01f0c553c480a32b30dae149f274b8
|
|
| BLAKE2b-256 |
151c479a939dc56262424896709f3e99309da5411fb624e79d8ee1f43f53aa33
|