bosdyn-choreography-client 4.0.2__py3-none-any.whl → 4.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -369,7 +369,8 @@ def convert_animation_file_to_proto(animated_file, animate_move_params_file=""):
369
369
 
370
370
  Args:
371
371
  animated_file (string): The filepath to the animation text file.
372
- animate_move_params_file (string): [Optional] The filepath to a default set of move parameters.
372
+ animate_move_params_file (string): [Required if needing default param values. Otherwise optional]
373
+ The filepath to a default set of move parameters or move parameters as a string.
373
374
 
374
375
  Returns:
375
376
  The Animation class, which contains the animation proto to be uploaded to the robot, as well
@@ -185,13 +185,18 @@ class ChoreographyClient(BaseClient):
185
185
 
186
186
  def get_choreography_status_async(self, **kwargs):
187
187
  """Async version of get_choreography_status."""
188
+
189
+ def _return_response_and_validity_time(result):
190
+ client_time = _TimeConverter(self,
191
+ self.timesync_endpoint).local_seconds_from_robot_timestamp(
192
+ result.validity_time)
193
+ return result, client_time
194
+
188
195
  request = choreography_sequence_pb2.ChoreographyStatusRequest()
189
- status = self.call_async(self._stub.ChoreographyStatus, request, value_from_response=None,
196
+ status = self.call_async(self._stub.ChoreographyStatus, request,
197
+ value_from_response=_return_response_and_validity_time,
190
198
  error_from_response=None, copy_request=False, **kwargs)
191
- client_time = _TimeConverter(self,
192
- self.timesync_endpoint).local_seconds_from_robot_timestamp(
193
- status.result().validity_time)
194
- return (status, client_time)
199
+ return status
195
200
 
196
201
  def choreography_log_to_animation_file(self, name, fpath, has_arm, *args):
197
202
  """Turn the choreography log from the proto into an animation `cha` file type.
@@ -246,7 +251,8 @@ class ChoreographyClient(BaseClient):
246
251
 
247
252
  #format the complete header with all the options to be included in the *.cha file
248
253
  joint_spacer = "{:<60}"
249
- header = (controls_header + "\n" "description: " + description + "\n")
254
+ header = (controls_header + "\n"
255
+ "description: " + description + "\n")
250
256
 
251
257
  for option in option_list(*args):
252
258
  header = header + option + "\n"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bosdyn-choreography-client
3
- Version: 4.0.2
3
+ Version: 4.1.0
4
4
  Summary: Boston Dynamics API client code and interfaces for choreography
5
5
  Home-page: https://dev.bostondynamics.com/
6
6
  Author: Boston Dynamics
@@ -15,9 +15,9 @@ Classifier: Programming Language :: Python :: 3.10
15
15
  Classifier: License :: Other/Proprietary License
16
16
  Classifier: Operating System :: OS Independent
17
17
  Description-Content-Type: text/markdown
18
- Requires-Dist: bosdyn-api (==4.0.2)
19
- Requires-Dist: bosdyn-core (==4.0.2)
20
- Requires-Dist: bosdyn-client (==4.0.2)
18
+ Requires-Dist: bosdyn-api (==4.1.0)
19
+ Requires-Dist: bosdyn-core (==4.1.0)
20
+ Requires-Dist: bosdyn-client (==4.1.0)
21
21
 
22
22
  <!--
23
23
  Copyright (c) 2023 Boston Dynamics, Inc. All rights reserved.
@@ -0,0 +1,10 @@
1
+ bosdyn/__init__.py,sha256=CMQioQKK1NlMk3kZuY49b_Aw-JyvDeOtuqOCAul1I0s,330
2
+ bosdyn/choreography/__init__.py,sha256=CMQioQKK1NlMk3kZuY49b_Aw-JyvDeOtuqOCAul1I0s,330
3
+ bosdyn/choreography/client/__init__.py,sha256=CMQioQKK1NlMk3kZuY49b_Aw-JyvDeOtuqOCAul1I0s,330
4
+ bosdyn/choreography/client/animation_file_conversion_helpers.py,sha256=iBEqEGAZknyh8WWxtxZrzoA-o8BDJ7a5pmft0kqNCrs,18438
5
+ bosdyn/choreography/client/animation_file_to_proto.py,sha256=C6Sp7zqnbEW1qBTxoWhdW_WzxVoNc9EisoVfM9r71CQ,26067
6
+ bosdyn/choreography/client/choreography.py,sha256=qZTka8q2Yvpt66xBM3EEeidTkIPYxiufJCqayjEGNQI,50799
7
+ bosdyn_choreography_client-4.1.0.dist-info/METADATA,sha256=3QS1E1kbc7Dqk-Xvu0rrNHJJoVhM8tETv1M39YhvlZs,1721
8
+ bosdyn_choreography_client-4.1.0.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
9
+ bosdyn_choreography_client-4.1.0.dist-info/top_level.txt,sha256=an2OWgx1ej2jFjmBjPWNQ68ZglvUfKhmXWW-WhTtDmA,7
10
+ bosdyn_choreography_client-4.1.0.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- bosdyn/__init__.py,sha256=CMQioQKK1NlMk3kZuY49b_Aw-JyvDeOtuqOCAul1I0s,330
2
- bosdyn/choreography/__init__.py,sha256=CMQioQKK1NlMk3kZuY49b_Aw-JyvDeOtuqOCAul1I0s,330
3
- bosdyn/choreography/client/__init__.py,sha256=CMQioQKK1NlMk3kZuY49b_Aw-JyvDeOtuqOCAul1I0s,330
4
- bosdyn/choreography/client/animation_file_conversion_helpers.py,sha256=iBEqEGAZknyh8WWxtxZrzoA-o8BDJ7a5pmft0kqNCrs,18438
5
- bosdyn/choreography/client/animation_file_to_proto.py,sha256=-24pM175p2d0zExWqwpHbxwF26gkPPDsU1BvGHTAQr4,25971
6
- bosdyn/choreography/client/choreography.py,sha256=tMfQ7MFSzgLHxBSFYHpBDc0uPoZr2zC90JJJpfI7sXQ,50633
7
- bosdyn_choreography_client-4.0.2.dist-info/METADATA,sha256=67xGEVQrYTtThR1ZENh-NbcbSLWjAMWMfmIAHl3dO0M,1721
8
- bosdyn_choreography_client-4.0.2.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
9
- bosdyn_choreography_client-4.0.2.dist-info/top_level.txt,sha256=an2OWgx1ej2jFjmBjPWNQ68ZglvUfKhmXWW-WhTtDmA,7
10
- bosdyn_choreography_client-4.0.2.dist-info/RECORD,,