sim2bot.Robot.stop_trajectory¶
stop_trajectory(robot: int = 0) -> None
¶
Cancel trajectory playback and hold the current joint pose.
Parameters:
-
robot(int, default:0) –Robot index returned by
describe.
Returns:
-
None–Playback is cancelled and the current pose is held.
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.
Source code in sim2bot/client.py
Practical examples¶
Examples use objects discovered from the current scene rather than hard-coded robot metadata.
Stop after a fixed duration
Guidance¶
Usage tip
Use this instead of reset() when you want to preserve the rest of the scene.