standardbots 2.20250128.44__py3-none-any.whl → 2.20250417.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.

Potentially problematic release.


This version of standardbots might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: standardbots
3
- Version: 2.20250128.44
3
+ Version: 2.20250417.2
4
4
  Summary: Standard Bots RO1 Robotics API
5
5
  Home-page:
6
6
  Author: Standard Bots Support
@@ -0,0 +1,12 @@
1
+ standardbots/__init__.py,sha256=PT6Z2HPama2fb6SaNhF3J1skpYABQWGgDzKEtQY6BDM,29
2
+ standardbots/auto_generated/__init__.py,sha256=PZtDUzYcjIO6R-gE-0NzY0vFXk1Je1tJ3je0ivV5o-k,98
3
+ standardbots/auto_generated/apis.py,sha256=vXP7q8pqnv0IqFXtbqW3CwvkaPxUjy7dFAOwbs3VwLo,125431
4
+ standardbots/auto_generated/models.py,sha256=0YP6OPaFI7Ge-8EEda33HXtb9i5GEX5MCPOxMGtxq24,333471
5
+ tests/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ tests/fixtures/client_fixt.py,sha256=LfeKYuYfHui-7YEFBlgtV33QN-MEI7DhAkJ6BUoZP6s,633
7
+ tests/fixtures/robot_fixt.py,sha256=6-0SgAjhEOUeydfRRu4dRVX-no1yYQxGKesAtvoPppc,1716
8
+ tests/fixtures/routines_fixt.py,sha256=XdcWUM0dl2SWJhtLd8-xYqI4nh4ge23SqJWquCIrQe0,2124
9
+ standardbots-2.20250417.2.dist-info/METADATA,sha256=UCTj3mpTHd8GiGT-fKXBjIXujsJ-YipVy0PJolVe98k,551
10
+ standardbots-2.20250417.2.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
11
+ standardbots-2.20250417.2.dist-info/top_level.txt,sha256=eHgNxowGe-eEE7gOyeuwXN3bHLClu-TQ1VnsOOzzTkw,19
12
+ standardbots-2.20250417.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (79.0.0)
2
+ Generator: setuptools (80.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,7 +1,5 @@
1
1
  """Fixtures: API Clients"""
2
2
 
3
- import os
4
-
5
3
  import pytest
6
4
  from standardbots import StandardBotsRobot
7
5
  from standardbots.auto_generated.apis import RobotKind
@@ -0,0 +1,49 @@
1
+ from collections.abc import Generator
2
+
3
+ import pytest
4
+ from standardbots import StandardBotsRobot
5
+ from standardbots.auto_generated import models
6
+
7
+
8
+ @pytest.fixture()
9
+ def unbrake_robot_fixt(client_live: StandardBotsRobot) -> Generator[None, None, None]:
10
+ """Fixture: Ensure robot is unbraked"""
11
+ with client_live.connection():
12
+ res = client_live.movement.brakes.get_brakes_state()
13
+ if res.data.state == models.BrakesStateEnum.Engaged:
14
+ client_live.movement.brakes.set_brakes_state(
15
+ models.BrakesState(state=models.BrakesStateEnum.Disengaged)
16
+ )
17
+
18
+ yield
19
+
20
+
21
+ @pytest.fixture()
22
+ def brake_robot_fixt(client_live: StandardBotsRobot) -> Generator[None, None, None]:
23
+ """Fixture: Ensure robot is braked"""
24
+ with client_live.connection():
25
+ res = client_live.movement.brakes.get_brakes_state()
26
+ if res.data.state == models.BrakesStateEnum.Disengaged:
27
+ client_live.movement.brakes.set_brakes_state(
28
+ models.BrakesState(state=models.BrakesStateEnum.Engaged)
29
+ )
30
+
31
+ yield
32
+
33
+
34
+ @pytest.fixture()
35
+ def move_robot_to_home_fixt(
36
+ client_live: StandardBotsRobot,
37
+ unbrake_robot_fixt: None,
38
+ ) -> Generator[None, None, None]:
39
+ """Fixture: Move robot to home position"""
40
+ with client_live.connection():
41
+ target_position = (0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
42
+ target_position_body = models.ArmPositionUpdateRequest(
43
+ kind=models.ArmPositionUpdateRequestKindEnum.JointRotation,
44
+ joint_rotation=models.ArmJointRotations(joints=target_position),
45
+ )
46
+ res = client_live.movement.position.set_arm_position(body=target_position_body)
47
+ assert not res.isNotOk()
48
+
49
+ yield
@@ -1,5 +1,7 @@
1
1
  """Fixtures: Routines"""
2
2
 
3
+ from collections.abc import Generator
4
+
3
5
  import pytest
4
6
  from standardbots import StandardBotsRobot
5
7
  from standardbots.auto_generated import models
@@ -46,3 +48,24 @@ def routine_sample(client_live: StandardBotsRobot) -> models.Routine:
46
48
  def routine_sample_id(routine_sample: models.Routine) -> str:
47
49
  """Fixture: ID of sample routine"""
48
50
  return routine_sample.id
51
+
52
+
53
+ @pytest.fixture()
54
+ def routine_running_live_fixt(
55
+ unbrake_robot_fixt: None, routine_sample_id: str, client_live: StandardBotsRobot
56
+ ) -> Generator[None, None, None]:
57
+ """Fixture: Running routine while running the test. Plays a routine, yields then stops at end"""
58
+ with client_live.connection():
59
+ res = client_live.routine_editor.routines.play(
60
+ routine_id=routine_sample_id, body=models.PlayRoutineRequest()
61
+ )
62
+ assert not res.isNotOk()
63
+ assert res.status == 200
64
+ assert res.data.status == models.RobotStatusEnum.RoutineRunning
65
+
66
+ try:
67
+ yield
68
+ finally:
69
+ with client_live.connection():
70
+ res = client_live.routine_editor.routines.stop()
71
+ assert not res.isNotOk()
@@ -1,11 +0,0 @@
1
- standardbots/__init__.py,sha256=PT6Z2HPama2fb6SaNhF3J1skpYABQWGgDzKEtQY6BDM,29
2
- standardbots/auto_generated/__init__.py,sha256=PZtDUzYcjIO6R-gE-0NzY0vFXk1Je1tJ3je0ivV5o-k,98
3
- standardbots/auto_generated/apis.py,sha256=6bcnOPP9QsufGVUsNJ_Aqb8-wRYIi06NDO06T5Pionk,93199
4
- standardbots/auto_generated/models.py,sha256=YcCOhhIQMQ8UQSX0DQc429dlC5ZiB7f7kh6MZ4Ju3Vo,274674
5
- tests/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- tests/fixtures/client_fixt.py,sha256=Va_L90iYIYPguyqr2eYE15ERkCgGgbee3AVLei8TCq4,644
7
- tests/fixtures/routines_fixt.py,sha256=CpdwndlSDmwFCxzCXicIAeFT2CO2VQqFm_6gVAF385c,1326
8
- standardbots-2.20250128.44.dist-info/METADATA,sha256=vBgdlmaxxDzX9zKIjdNqNQr8WZddrT8C-pf-i0Z-PIo,552
9
- standardbots-2.20250128.44.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
10
- standardbots-2.20250128.44.dist-info/top_level.txt,sha256=eHgNxowGe-eEE7gOyeuwXN3bHLClu-TQ1VnsOOzzTkw,19
11
- standardbots-2.20250128.44.dist-info/RECORD,,