<gh_stars>0
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

from . import mocap_pb2 as mocap_dot_mocap__pb2


class MocapServiceStub(object):
  """*
  Allows interfacing a vehicle with a motion capture system in
  order to allow navigation without global positioning sources available
  (e.g. indoors, or when flying under a bridge. etc.).
  """

  def __init__(self, channel):
    """Constructor.

    Args:
      channel: A grpc.Channel.
    """
    self.SetVisionPositionEstimate = channel.unary_unary(
        '/mavsdk.rpc.mocap.MocapService/SetVisionPositionEstimate',
        request_serializer=mocap_dot_mocap__pb2.SetVisionPositionEstimateRequest.SerializeToString,
        response_deserializer=mocap_dot_mocap__pb2.SetVisionPositionEstimateResponse.FromString,
        )
    self.SetAttitudePositionMocap = channel.unary_unary(
        '/mavsdk.rpc.mocap.MocapService/SetAttitudePositionMocap',
        request_serializer=mocap_dot_mocap__pb2.SetAttitudePositionMocapRequest.SerializeToString,
        response_deserializer=mocap_dot_mocap__pb2.SetAttitudePositionMocapResponse.FromString,
        )
    self.SetOdometry = channel.unary_unary(
        '/mavsdk.rpc.mocap.MocapService/SetOdometry',
        request_serializer=mocap_dot_mocap__pb2.SetOdometryRequest.SerializeToString,
        response_deserializer=mocap_dot_mocap__pb2.SetOdometryResponse.FromString,
        )


class MocapServiceServicer(object):
  """*
  Allows interfacing a vehicle with a motion capture system in
  order to allow navigation without global positioning sources available
  (e.g. indoors, or when flying under a bridge. etc.).
  """

  def SetVisionPositionEstimate(self, request, context):
    """Send Global position/attitude estimate from a vision source.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def SetAttitudePositionMocap(self, request, context):
    """Send motion capture attitude and position.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def SetOdometry(self, request, context):
    """Send odometry information with an external interface.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_MocapServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'SetVisionPositionEstimate': grpc.unary_unary_rpc_method_handler(
          servicer.SetVisionPositionEstimate,
          request_deserializer=mocap_dot_mocap__pb2.SetVisionPositionEstimateRequest.FromString,
          response_serializer=mocap_dot_mocap__pb2.SetVisionPositionEstimateResponse.SerializeToString,
      ),
      'SetAttitudePositionMocap': grpc.unary_unary_rpc_method_handler(
          servicer.SetAttitudePositionMocap,
          request_deserializer=mocap_dot_mocap__pb2.SetAttitudePositionMocapRequest.FromString,
          response_serializer=mocap_dot_mocap__pb2.SetAttitudePositionMocapResponse.SerializeToString,
      ),
      'SetOdometry': grpc.unary_unary_rpc_method_handler(
          servicer.SetOdometry,
          request_deserializer=mocap_dot_mocap__pb2.SetOdometryRequest.FromString,
          response_serializer=mocap_dot_mocap__pb2.SetOdometryResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'mavsdk.rpc.mocap.MocapService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))

# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

from . import mocap_pb2 as mocap_dot_mocap__pb2


class MocapServiceStub(object):
  """*
  Allows interfacing a vehicle with a motion capture system in
  order to allow navigation without global positioning sources available
  (e.g. indoors, or when flying under a bridge. etc.).
  """

  def __init__(self, channel):
    """Constructor.

    Args:
      channel: A grpc.Channel.
    """
    self.SetVisionPositionEstimate = channel.unary_unary(
        '/mavsdk.rpc.mocap.MocapService/SetVisionPositionEstimate',
        request_serializer=mocap_dot_mocap__pb2.SetVisionPositionEstimateRequest.SerializeToString,
        response_deserializer=mocap_dot_mocap__pb2.SetVisionPositionEstimateResponse.FromString,
        )
    self.SetAttitudePositionMocap = channel.unary_unary(
        '/mavsdk.rpc.mocap.MocapService/SetAttitudePositionMocap',
        request_serializer=mocap_dot_mocap__pb2.SetAttitudePositionMocapRequest.SerializeToString,
        response_deserializer=mocap_dot_mocap__pb2.SetAttitudePositionMocapResponse.FromString,
        )
    self.SetOdometry = channel.unary_unary(
        '/mavsdk.rpc.mocap.MocapService/SetOdometry',
        request_serializer=mocap_dot_mocap__pb2.SetOdometryRequest.SerializeToString,
        response_deserializer=mocap_dot_mocap__pb2.SetOdometryResponse.FromString,
        )


class MocapServiceServicer(object):
  """*
  Allows interfacing a vehicle with a motion capture system in
  order to allow navigation without global positioning sources available
  (e.g. indoors, or when flying under a bridge. etc.).
  """

  def SetVisionPositionEstimate(self, request, context):
    """Send Global position/attitude estimate from a vision source.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def SetAttitudePositionMocap(self, request, context):
    """Send motion capture attitude and position.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def SetOdometry(self, request, context):
    """Send odometry information with an external interface.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_MocapServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'SetVisionPositionEstimate': grpc.unary_unary_rpc_method_handler(
          servicer.SetVisionPositionEstimate,
          request_deserializer=mocap_dot_mocap__pb2.SetVisionPositionEstimateRequest.FromString,
          response_serializer=mocap_dot_mocap__pb2.SetVisionPositionEstimateResponse.SerializeToString,
      ),
      'SetAttitudePositionMocap': grpc.unary_unary_rpc_method_handler(
          servicer.SetAttitudePositionMocap,
          request_deserializer=mocap_dot_mocap__pb2.SetAttitudePositionMocapRequest.FromString,
          response_serializer=mocap_dot_mocap__pb2.SetAttitudePositionMocapResponse.SerializeToString,
      ),
      'SetOdometry': grpc.unary_unary_rpc_method_handler(
          servicer.SetOdometry,
          request_deserializer=mocap_dot_mocap__pb2.SetOdometryRequest.FromString,
          response_serializer=mocap_dot_mocap__pb2.SetOdometryResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'mavsdk.rpc.mocap.MocapService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! *   Allows interfacing a vehicle with a motion capture system in   order to allow navigation without global positioning sources available   (e.g. indoors, or when flying under a bridge. etc.). Constructor.      Args:       channel: A grpc.Channel. *   Allows interfacing a vehicle with a motion capture system in   order to allow navigation without global positioning sources available   (e.g. indoors, or when flying under a bridge. etc.). Send Global position/attitude estimate from a vision source. Send motion capture attitude and position. Send odometry information with an external interface.