We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02a97e1 commit d1ba1e0Copy full SHA for d1ba1e0
franky/robot_web_session.py
@@ -157,6 +157,14 @@ def set_mode_execution(self):
157
def get_system_status(self):
158
return json.loads(self.send_api_request("/admin/api/system-status", method="GET").decode("utf-8"))
159
160
+ def execute_self_test(self):
161
+ response = json.loads(self.send_control_api_request(
162
+ "/admin/api/safety/td2-tests/execute", headers={"content-type": "application/json"}).decode("utf-8"))
163
+ assert response["code"] == "SuccessResponse"
164
+ time.sleep(0.5)
165
+ while self.get_system_status()["safety"]["safetyControllerStatus"] == "SelfTest":
166
167
+
168
@property
169
def client(self) -> HTTPSConnection:
170
return self.__client
0 commit comments