Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mavlink2grpc_proto-0.0.1-py3-none-any.whl (44.6 kB view details)

Uploaded Python 3

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

Hashes for mavlink2grpc_proto-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d5d61253ce0f40992dea1e66ec098d00789b3f373a9712da575d648f9ce761a0
MD5 f657bd641f9eab2caf3a1da68b29d703
BLAKE2b-256 bdf9f6e85d06ae176e1c989d369af654bd1ffd0819f82b8c04315c08ceb5bda4

See more details on using hashes here.

File details

Details for the file mavlink2grpc_proto-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mavlink2grpc_proto-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 234c665306cb4beca23f5d090a01cd8351deb1dc3562e08b3c5201c3f3a59901
MD5 9b01f0c553c480a32b30dae149f274b8
BLAKE2b-256 151c479a939dc56262424896709f3e99309da5411fb624e79d8ee1f43f53aa33

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