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.1.0.tar.gz (50.1 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.1.0-py3-none-any.whl (52.4 kB view details)

Uploaded Python 3

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

Hashes for mavlink2grpc_proto-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e06bf9c7b9ec92226adeced088805c0d4ba01f0dea63e146ee033dacfda5d98b
MD5 537e8f2997eca0d8ac3d1496534b6a80
BLAKE2b-256 6c9b850f9f1abcf588368e08e84bb7fa0f4a7ba4df7c1eb2961e142a05701d87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mavlink2grpc_proto-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f779fc9835b630ff888c0f18a4481ae626987061d6704aee6e5fb8c598d98305
MD5 9c6d9281b11d4d079ef43e58b687d2cf
BLAKE2b-256 79acb1e8719edcde25862295fd0708022f8fbdc51a50c4f17f9ef1ab101a34dc

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