Repository URL to install this package:
|
Version:
4.1.0 ▾
|
# 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 import world_object_pb2 as bosdyn_dot_api_dot_world__object__pb2
class WorldObjectServiceStub(object):
"""The world object service provides a way to track and store objects detected in the world around
the robot.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.ListWorldObjects = channel.unary_unary(
'/bosdyn.api.WorldObjectService/ListWorldObjects',
request_serializer=bosdyn_dot_api_dot_world__object__pb2.ListWorldObjectRequest.SerializeToString,
response_deserializer=bosdyn_dot_api_dot_world__object__pb2.ListWorldObjectResponse.FromString,
)
self.MutateWorldObjects = channel.unary_unary(
'/bosdyn.api.WorldObjectService/MutateWorldObjects',
request_serializer=bosdyn_dot_api_dot_world__object__pb2.MutateWorldObjectRequest.SerializeToString,
response_deserializer=bosdyn_dot_api_dot_world__object__pb2.MutateWorldObjectResponse.FromString,
)
class WorldObjectServiceServicer(object):
"""The world object service provides a way to track and store objects detected in the world around
the robot.
"""
def ListWorldObjects(self, request, context):
"""Request a list of all the world objects in the robot's perception scene.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def MutateWorldObjects(self, request, context):
"""Mutate (add, change, or delete) the world objects.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_WorldObjectServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'ListWorldObjects': grpc.unary_unary_rpc_method_handler(
servicer.ListWorldObjects,
request_deserializer=bosdyn_dot_api_dot_world__object__pb2.ListWorldObjectRequest.FromString,
response_serializer=bosdyn_dot_api_dot_world__object__pb2.ListWorldObjectResponse.SerializeToString,
),
'MutateWorldObjects': grpc.unary_unary_rpc_method_handler(
servicer.MutateWorldObjects,
request_deserializer=bosdyn_dot_api_dot_world__object__pb2.MutateWorldObjectRequest.FromString,
response_serializer=bosdyn_dot_api_dot_world__object__pb2.MutateWorldObjectResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'bosdyn.api.WorldObjectService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class WorldObjectService(object):
"""The world object service provides a way to track and store objects detected in the world around
the robot.
"""
@staticmethod
def ListWorldObjects(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.WorldObjectService/ListWorldObjects',
bosdyn_dot_api_dot_world__object__pb2.ListWorldObjectRequest.SerializeToString,
bosdyn_dot_api_dot_world__object__pb2.ListWorldObjectResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def MutateWorldObjects(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.WorldObjectService/MutateWorldObjects',
bosdyn_dot_api_dot_world__object__pb2.MutateWorldObjectRequest.SerializeToString,
bosdyn_dot_api_dot_world__object__pb2.MutateWorldObjectResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)