bosdyn-choreography-client 4.0.1__py3-none-any.whl → 4.0.2__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.
@@ -533,13 +533,17 @@ class ChoreographyClient(BaseClient):
533
533
  copy_request=False,
534
534
  **kwargs)
535
535
 
536
- def get_choreography_sequence(self, seq_name, **kwargs):
536
+ def get_choreography_sequence(self, seq_name, return_animation_names_only=False, **kwargs):
537
537
  """Get a sequence currently known by the robot, response includes
538
538
  the full ChoreographySequence with the given name and any
539
539
  Animations used in the sequence.
540
540
 
541
541
  Args:
542
542
  seq_name (string): the name of the sequence to return.
543
+ return_animation_names_only (bool): If True, skip returning a list of the complete
544
+ Animation protos required by the sequence and leave the 'animated_moves' field of
545
+ the response empty. (The repeated string field, 'animation_names' for the list
546
+ of the names of required animations will still be returned).
543
547
 
544
548
  Returns:
545
549
  The full GetChoreographySequenceResponse proto.
@@ -547,6 +551,7 @@ class ChoreographyClient(BaseClient):
547
551
 
548
552
  req = choreography_sequence_pb2.GetChoreographySequenceRequest()
549
553
  req.sequence_name = seq_name
554
+ req.return_animation_names_only = return_animation_names_only
550
555
  return self.call(
551
556
  self._stub.GetChoreographySequence,
552
557
  req,
@@ -555,10 +560,12 @@ class ChoreographyClient(BaseClient):
555
560
  copy_request=False,
556
561
  **kwargs)
557
562
 
558
- def get_choreography_sequence_async(self, seq_name, **kwargs):
563
+ def get_choreography_sequence_async(self, seq_name, return_animation_names_only=False,
564
+ **kwargs):
559
565
  """Async version of get_choreography_sequence()."""
560
566
  req = choreography_sequence_pb2.GetChoreographySequenceRequest()
561
567
  req.sequence_name = seq_name
568
+ req.return_animation_names_only = return_animation_names_only
562
569
  return self.call_async(
563
570
  self._stub.GetChoreographySequence,
564
571
  req,
@@ -567,6 +574,40 @@ class ChoreographyClient(BaseClient):
567
574
  copy_request=False,
568
575
  **kwargs)
569
576
 
577
+ def get_animation(self, name, **kwargs):
578
+ """Get an animation currently known by the robot, response includes
579
+ the full Animation proto with the given name.
580
+
581
+ Args:
582
+ name (string): the name of the animation to return.
583
+
584
+ Returns:
585
+ The full GetAnimation proto.
586
+ """
587
+
588
+ req = choreography_sequence_pb2.GetAnimationRequest()
589
+ req.name = name
590
+ return self.call(
591
+ self._stub.GetAnimation,
592
+ req,
593
+ value_from_response=None, # Return the complete response message
594
+ error_from_response=common_header_errors,
595
+ copy_request=False,
596
+ **kwargs)
597
+
598
+ def get_animation_async(self, name, **kwargs):
599
+ """Async version of get_animation()."""
600
+
601
+ req = choreography_sequence_pb2.GetAnimationRequest()
602
+ req.name = name
603
+ return self.call_async(
604
+ self._stub.GetAnimation,
605
+ req,
606
+ value_from_response=None, # Return the complete response message
607
+ error_from_response=common_header_errors,
608
+ copy_request=False,
609
+ **kwargs)
610
+
570
611
  def save_sequence(self, seq_name, labels=[], **kwargs):
571
612
  """Save an uploaded sequence to the robot. Saved sequences are
572
613
  automatically uploaded to the robot when it boots.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bosdyn-choreography-client
3
- Version: 4.0.1
3
+ Version: 4.0.2
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.1)
19
- Requires-Dist: bosdyn-core (==4.0.1)
20
- Requires-Dist: bosdyn-client (==4.0.1)
18
+ Requires-Dist: bosdyn-api (==4.0.2)
19
+ Requires-Dist: bosdyn-core (==4.0.2)
20
+ Requires-Dist: bosdyn-client (==4.0.2)
21
21
 
22
22
  <!--
23
23
  Copyright (c) 2023 Boston Dynamics, Inc. All rights reserved.
@@ -3,8 +3,8 @@ bosdyn/choreography/__init__.py,sha256=CMQioQKK1NlMk3kZuY49b_Aw-JyvDeOtuqOCAul1I
3
3
  bosdyn/choreography/client/__init__.py,sha256=CMQioQKK1NlMk3kZuY49b_Aw-JyvDeOtuqOCAul1I0s,330
4
4
  bosdyn/choreography/client/animation_file_conversion_helpers.py,sha256=iBEqEGAZknyh8WWxtxZrzoA-o8BDJ7a5pmft0kqNCrs,18438
5
5
  bosdyn/choreography/client/animation_file_to_proto.py,sha256=-24pM175p2d0zExWqwpHbxwF26gkPPDsU1BvGHTAQr4,25971
6
- bosdyn/choreography/client/choreography.py,sha256=xNE2IqJxlYyTMON5HNUUNnO5rFFS7C9meLkuXjjhUS0,48849
7
- bosdyn_choreography_client-4.0.1.dist-info/METADATA,sha256=EhyriEu4v7FtX0T0LQNU7f77uTg1SJHvgr05v640fug,1721
8
- bosdyn_choreography_client-4.0.1.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
9
- bosdyn_choreography_client-4.0.1.dist-info/top_level.txt,sha256=an2OWgx1ej2jFjmBjPWNQ68ZglvUfKhmXWW-WhTtDmA,7
10
- bosdyn_choreography_client-4.0.1.dist-info/RECORD,,
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,,