sim2bot.Robot.stop¶
stop(robot: int = 0) -> None
¶
Hold one robot at its current joint pose.
Parameters:
-
robot(int, default:0) –Robot index returned by
describe.
Returns:
-
None–The simulator receives a hold-position command.
Raises:
-
RuntimeError–If the client is not connected.
-
ConnectionClosed–If the WebSocket closes while sending the command.
-
OSError–If the selected transport cannot send the command.
Notes
This replaces active velocity, TCP, or trajectory control for the addressed robot. It is a simulation hold command, not an emergency stop certified for real hardware.
Source code in sim2bot/client.py
Practical examples¶
Examples use objects discovered from the current scene rather than hard-coded robot metadata.
Guarantee cleanup after streamed control
Guidance¶
Usage tip
Use stop() to end SDK velocity, TCP, or trajectory control without resetting the rest of the scene.
Important behavior
This is a simulation hold command, not a hardware emergency stop.