@@ -112,7 +112,7 @@ class RobotClient:
112112 Can be used as a context manager to ensure proper cleanup:
113113
114114 with RobotClient() as client:
115- client.resume ()
115+ client.home ()
116116 ...
117117 """
118118
@@ -178,6 +178,10 @@ def port(self) -> int:
178178 def home (self , wait : bool = False , timeout : float = 60.0 ) -> int :
179179 """Home the robot to its home position.
180180
181+ Unhomed, this runs the full referencing sequence (each joint seeks
182+ its limit switch, then moves to standby). Already homed, it returns
183+ to standby with a normal planned, collision-checked joint move.
184+
181185 Returns the command index (≥ 0) on success, -1 on failure.
182186
183187 Args:
@@ -194,21 +198,33 @@ def teleport(
194198 """Instantly set joint angles and optional tool positions (simulator only)."""
195199 return _run (self ._inner .teleport (angles_deg , tool_positions = tool_positions ))
196200
197- def resume (self ) -> int :
198- """Re-enable the robot controller, allowing motion commands.
201+ def stop (self ) -> int :
202+ """Stop all motion — cancel the active move and clear the queue.
203+
204+ The controller stays enabled and holding position; the next motion
205+ command is accepted immediately.
199206
200207 Returns:
201208 1 if acknowledged, 0 on failure.
202209 """
203- return _run (self ._inner .resume ())
210+ return _run (self ._inner .stop ())
204211
205- def halt (self ) -> int :
206- """Halt the robot — stop all motion and disable.
212+ def estop (self ) -> int :
213+ """Protective stop: stop all motion and latch the controller
214+ disabled until ``reset()``.
207215
208216 Returns:
209217 1 if acknowledged, 0 on failure.
210218 """
211- return _run (self ._inner .halt ())
219+ return _run (self ._inner .estop ())
220+
221+ def reset (self ) -> int :
222+ """Clear a latched protective stop, re-enabling motion.
223+
224+ Returns:
225+ 1 if acknowledged, 0 on failure.
226+ """
227+ return _run (self ._inner .reset ())
212228
213229 def simulator (self , enabled : bool ) -> int :
214230 """Enable or disable simulator mode."""
@@ -229,9 +245,9 @@ def connect_hardware(self, port_str: str) -> int:
229245 """
230246 return _run (self ._inner .connect_hardware (port_str ))
231247
232- def reset (self ) -> int :
248+ def reset_state (self ) -> int :
233249 """Reset controller state to initial values."""
234- return _run (self ._inner .reset ())
250+ return _run (self ._inner .reset_state ())
235251
236252 # ---------- status / queries ----------
237253 def ping (self ) -> PingResult | None :
0 commit comments