Skip to main content

Boston Dynamics API client code and interfaces

Project description

<!– Copyright (c) 2022 Boston Dynamics, Inc. All rights reserved.

Downloading, reproducing, distributing or otherwise using the SDK Software is subject to the terms and conditions of the Boston Dynamics Software Development Kit License (20191101-BDSDK-SL). –>

# bosdyn-client

<p align=”center”> <img src=”https://www.bostondynamics.com/sites/default/files/2020-05/spot.png” style=”max-width:50%;”> </p>

The bosdyn-client wheel contains client interfaces for interacting with the Boston Dynamics Spot API. The client interfaces implement the Remote Procedure Calls (RPCs) defined in the [bosdyn-api wheel](https://pypi.org/project/bosdyn-api/).

## Main Classes

The main classes contained in this wheel are Sdk and Robot.

  • Sdk: Class for settings typically common to a single developer and/or robot fleet.

  • Robot: Class for settings common to one user’s access to one robot. This is the main point of access to all client functionality.

For example, to list the robot image sources using the Image client, simply create an Sdk object, create a Robot object, authenticate, create the client and call the corresponding method, as shown below. It is that simple!

`pycon >>> import bosdyn.client >>> sdk = bosdyn.client.create_standard_sdk('image_capture') >>> robot = sdk.create_robot(hostname) >>> robot.authenticate(username, password) >>> image_client = robot.ensure_client(ImageClient.default_service_name) >>> image_sources = image_client.list_image_sources() `

Clients that trigger robot movement also need to set up the TimeSync, Lease and E-Stop clients. Our [examples](https://github.com/boston-dynamics/spot-sdk/tree/master/python/examples) repository contains many tutorials on how to use the clients included in this wheel.

## Command-line Support

Some of the clients included in this wheel can also be accessed directly from the command-line.

`pycon >>> python3 -m bosdyn.client hostname -h >>> usage: bosdyn.client [-h] [-v] [--username USERNAME] [--password PASSWORD] >>> hostname >>> {dir,id,state,log,time-sync,lease,become-estop,image,local_grid} >>> ... `

For example, to list the robot image sources from the command-line:

` $ python3 -m bosdyn.client hostname image list-sources back_depth (240x424) back_depth_in_visual_frame (480x640) back_fisheye_image (480x640) frontleft_depth (240x424) frontleft_depth_in_visual_frame (480x640) frontleft_fisheye_image (480x640) frontright_depth (240x424) frontright_depth_in_visual_frame (480x640) frontright_fisheye_image (480x640) left_depth (240x424) left_depth_in_visual_frame (480x640) left_fisheye_image (480x640) right_depth (240x424) right_depth_in_visual_frame (480x640) right_fisheye_image (480x640) `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bosdyn_client-3.2.1-py2.py3-none-any.whl (242.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file bosdyn_client-3.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: bosdyn_client-3.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 242.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for bosdyn_client-3.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 75942ac133c0932b6c136308b79a037c135e9fb7f4347af62b4a8ac8b694f495
MD5 c0d1266df0c09582d8bc9f3560b3d53f
BLAKE2b-256 859c21372a8b40612112cc3ca6b7459fd737e45401cca2d21b265f4d0acba92c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page