Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
bosdyn-api / api / graph_nav / area_callback_service_pb2_grpc.py
Size: Mime:
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

from bosdyn.api.graph_nav import area_callback_pb2 as bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2


class AreaCallbackServiceStub(object):
    """Missing associated documentation comment in .proto file."""

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

        Args:
            channel: A grpc.Channel.
        """
        self.AreaCallbackInformation = channel.unary_unary(
                '/bosdyn.api.graph_nav.AreaCallbackService/AreaCallbackInformation',
                request_serializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.AreaCallbackInformationRequest.SerializeToString,
                response_deserializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.AreaCallbackInformationResponse.FromString,
                )
        self.BeginCallback = channel.unary_unary(
                '/bosdyn.api.graph_nav.AreaCallbackService/BeginCallback',
                request_serializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.BeginCallbackRequest.SerializeToString,
                response_deserializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.BeginCallbackResponse.FromString,
                )
        self.BeginControl = channel.unary_unary(
                '/bosdyn.api.graph_nav.AreaCallbackService/BeginControl',
                request_serializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.BeginControlRequest.SerializeToString,
                response_deserializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.BeginControlResponse.FromString,
                )
        self.UpdateCallback = channel.unary_unary(
                '/bosdyn.api.graph_nav.AreaCallbackService/UpdateCallback',
                request_serializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.UpdateCallbackRequest.SerializeToString,
                response_deserializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.UpdateCallbackResponse.FromString,
                )
        self.RouteChange = channel.unary_unary(
                '/bosdyn.api.graph_nav.AreaCallbackService/RouteChange',
                request_serializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.RouteChangeRequest.SerializeToString,
                response_deserializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.RouteChangeResponse.FromString,
                )
        self.EndCallback = channel.unary_unary(
                '/bosdyn.api.graph_nav.AreaCallbackService/EndCallback',
                request_serializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.EndCallbackRequest.SerializeToString,
                response_deserializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.EndCallbackResponse.FromString,
                )


class AreaCallbackServiceServicer(object):
    """Missing associated documentation comment in .proto file."""

    def AreaCallbackInformation(self, request, context):
        """Retrieve information about how to operate the service, including what lease resources are
        required by the navigation callback.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def BeginCallback(self, request, context):
        """BeginCallback is called once as the robot enters a AreaCallback region of a map. This call
        initializes the navigation callback for operation.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def BeginControl(self, request, context):
        """BeginControl is called once after the area callback implementation requests control. Control
        is handed off (via a lease) from the caller to the area callback.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def UpdateCallback(self, request, context):
        """UpdateCallback is called periodically while the callback is running. Area callback
        implementations use UpdateCallback to dictate how caller should operate while callback is
        running (pause, continue, etc.)
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def RouteChange(self, request, context):
        """Called only if the route changes in the middle of the region (for example, if the robot is
        blocked by an obstacle and re-routes).
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def EndCallback(self, request, context):
        """EndCallback is called once when the caller decides the navigation callback is over. This
        might be because the robot exited the callback region or might be because the callback
        reported that it finished doing work.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_AreaCallbackServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'AreaCallbackInformation': grpc.unary_unary_rpc_method_handler(
                    servicer.AreaCallbackInformation,
                    request_deserializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.AreaCallbackInformationRequest.FromString,
                    response_serializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.AreaCallbackInformationResponse.SerializeToString,
            ),
            'BeginCallback': grpc.unary_unary_rpc_method_handler(
                    servicer.BeginCallback,
                    request_deserializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.BeginCallbackRequest.FromString,
                    response_serializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.BeginCallbackResponse.SerializeToString,
            ),
            'BeginControl': grpc.unary_unary_rpc_method_handler(
                    servicer.BeginControl,
                    request_deserializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.BeginControlRequest.FromString,
                    response_serializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.BeginControlResponse.SerializeToString,
            ),
            'UpdateCallback': grpc.unary_unary_rpc_method_handler(
                    servicer.UpdateCallback,
                    request_deserializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.UpdateCallbackRequest.FromString,
                    response_serializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.UpdateCallbackResponse.SerializeToString,
            ),
            'RouteChange': grpc.unary_unary_rpc_method_handler(
                    servicer.RouteChange,
                    request_deserializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.RouteChangeRequest.FromString,
                    response_serializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.RouteChangeResponse.SerializeToString,
            ),
            'EndCallback': grpc.unary_unary_rpc_method_handler(
                    servicer.EndCallback,
                    request_deserializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.EndCallbackRequest.FromString,
                    response_serializer=bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.EndCallbackResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'bosdyn.api.graph_nav.AreaCallbackService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class AreaCallbackService(object):
    """Missing associated documentation comment in .proto file."""

    @staticmethod
    def AreaCallbackInformation(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/bosdyn.api.graph_nav.AreaCallbackService/AreaCallbackInformation',
            bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.AreaCallbackInformationRequest.SerializeToString,
            bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.AreaCallbackInformationResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def BeginCallback(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/bosdyn.api.graph_nav.AreaCallbackService/BeginCallback',
            bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.BeginCallbackRequest.SerializeToString,
            bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.BeginCallbackResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def BeginControl(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/bosdyn.api.graph_nav.AreaCallbackService/BeginControl',
            bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.BeginControlRequest.SerializeToString,
            bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.BeginControlResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def UpdateCallback(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/bosdyn.api.graph_nav.AreaCallbackService/UpdateCallback',
            bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.UpdateCallbackRequest.SerializeToString,
            bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.UpdateCallbackResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def RouteChange(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/bosdyn.api.graph_nav.AreaCallbackService/RouteChange',
            bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.RouteChangeRequest.SerializeToString,
            bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.RouteChangeResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def EndCallback(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/bosdyn.api.graph_nav.AreaCallbackService/EndCallback',
            bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.EndCallbackRequest.SerializeToString,
            bosdyn_dot_api_dot_graph__nav_dot_area__callback__pb2.EndCallbackResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)