Processors

Common message processors.

class bosdyn.client.processors.AddRequestHeader(client_name_func)[source]

Bases: object

Sets header fields common to all bosdyn.api requests.

mutate(request)[source]

Mutate request such that its header contains a client name and a timestamp.

Headers are not required for third party proto requests/responses.

class bosdyn.client.processors.DataBufferLoggingProcessor(data_buffer_client)[source]

Bases: object

Processor that logs every protobuf message to the robot’s data buffer.

mutate(proto, **kwargs)[source]

Logs the protobuf message to the data buffer. :param proto: The protobuf request or response to log.

bosdyn.client.processors.log_all_rpcs(client, data_buffer_client)[source]

Attach a DataBufferLoggingProcessor to log all RPC requests and responses for the given client.