Media Log

For clients to the Spot CAM MediaLog service.

class bosdyn.client.spot_cam.media_log.MediaLogClient[source]

Bases: BaseClient

A client calling Spot CAM MediaLog service.

default_service_name = 'spot-cam-media-log'
service_type = 'bosdyn.api.spot_cam.MediaLogService'
delete(logpoint, **kwargs)[source]

Removes the Logpoint from the Spot CAM system.

Parameters:

logpoint – spot_cam.Logpoint.name must be filled out.

delete_async(logpoint, **kwargs)[source]

Async version of delete()

enable_debug(temp=False, humidity=False, bit=False, shock=True, system_stats=False, **kwargs)[source]

Start periodic logging of health data to the database, queryable via Health service.

Parameters:
  • temp – Enable logging of temperature data.

  • humidity – Enable logging of humidity data.

  • bit – Enable logging of BIT events coming from the Health service.

  • shock – Enable logging of Shock data.

  • system_stats – Enable logging of cpu, gpu, memory, and network utilization.

enable_debug_async(temp=False, humidity=False, bit=False, shock=True, system_stats=False, **kwargs)[source]

Async version of enable_debug()

get_status(logpoint, **kwargs)[source]

Gets the state of the specified logpoint.

Parameters:

logpoint – spot_cam.Logpoint.name must be filled out.

Returns:

A spot_cam.Logpoint with the status filled out.

get_status_async(logpoint, **kwargs)[source]

Async version of get_status()

list_cameras(**kwargs)[source]

List cameras on Spot CAM

list_cameras_async(**kwargs)[source]

Async version of list_cameras()

list_logpoints(**kwargs)[source]

List Logpoints on Spot CAM

retrieve(logpoint, **kwargs)[source]

Retrieves the image associated with the Logpoint.

Parameters:

logpoint – spot_cam.Logpoint.name must be filled out.

retrieve_raw_data(logpoint, **kwargs)[source]

Retrieves the image associated with the Logpoint.

Parameters:

logpoint – spot_cam.Logpoint.name must be filled out.

set_passphrase(passphrase, **kwargs)[source]

Set password for Spot CAM filesystem.

Deprecated since version 3.0.0: Spot CAM encryption has been removed as a result of the switch to NTFS.

set_passphrase_async(passphrase, **kwargs)[source]

Async version of set_passphrase()

Deprecated since version 3.0.0: Spot CAM encryption has been removed as a result of the switch to NTFS.

store(camera, record_type, tag=None, **kwargs)[source]

Store media on the Spot CAM.

Parameters:
  • camera – spot_cam.Camera protobuf describing the camera to store media on.

  • record_type – spot_cam.Logpoint.RecordType indicating the type of recording.

  • tag – Optional string to associate with the stored media.

Returns:

An spot_cam.Logpoint describing the stored data.

store_async(camera, record_type, tag=None, **kwargs)[source]

Async version of store()

tag(logpoint, **kwargs)[source]

Update the ‘tag’ field of an existing Logpoint.

Parameters:

logpoint – ‘tag’ and ‘name’ in spot_cam.Logpoint must be filled out.

tag_async(logpoint, **kwargs)[source]

Async version of tag()