Remote Client

Client for the RemoteMission service.

exception bosdyn.mission.remote_client.Error[source]

Bases: Exception

exception bosdyn.mission.remote_client.InvalidSessionId(response, error_message=None)[source]

Bases: ResponseError

Provided session ID was not valid on the server.

exception bosdyn.mission.remote_client.MissingInputs(response, error_message=None)[source]

Bases: ResponseError

Missing required inputs.

exception bosdyn.mission.remote_client.MissingLeases(response, error_message=None)[source]

Bases: ResponseError

Missing leases on required resources.

bosdyn.mission.remote_client.tree_status_from_tick_status(tick_status)[source]
class bosdyn.mission.remote_client.RemoteClient[source]

Bases: BaseClient

default_service_name = None
service_type = 'bosdyn.api.mission.RemoteMissionService'
update_from(other)[source]

Adopt key objects like processors, logger, and wallet from other.

establish_session(leases=(), inputs=None, lease_resources=<object object>, **kwargs)[source]

Establish a session.

Parameters:
  • leases (Iterable[Lease]) – List of lease protobufs to establish session with.

  • inputs (Iterable[bosdyn.api.mission.KeyValue]) – any inputs needed by the remote node.

  • lease_resources (Iterable[str]) – List of resource names to use from the lease wallet. Only applied if no leases are provided.

establish_session_async(leases=(), inputs=None, lease_resources=<object object>, **kwargs)[source]

Async version of establish_session()

tick(session_id, leases=(), inputs=None, lease_resources=<object object>, group_name=None, params=None, **kwargs)[source]

Tick the remote node.

Parameters:
  • session_id – session

  • leases (Iterable[Lease]) – List of lease protobufs to use during the tick.

  • inputs (Iterable[bosdyn.api.mission.KeyValue]) – any inputs needed by the remote node.

  • lease_resources (Iterable[str]) – List of resource names to use from the lease wallet. Only applied if no leases are provided.

tick_async(session_id, leases=(), inputs=None, lease_resources=<object object>, group_name=None, params=None, **kwargs)[source]

Async version of tick()

stop(session_id, **kwargs)[source]
stop_async(session_id, **kwargs)[source]
teardown_session(session_id, **kwargs)[source]
teardown_session_async(session_id, **kwargs)[source]
get_service_info(**kwargs)[source]

Get information about the service itself, such as a custom parameter spec.

Raises:

RpcError – problem communicating with the robot.

Returns:

A GetRemoteMissionServiceInfoResponse message describing this service.

get_service_info_async(**kwargs)[source]

Async version of get_service_info()