# Station safety and controls

bsln version: `0.0.1b40`

SDK source: `baseline-robotics/engineering@c8db8d9fbc8ce8e0524c5ee45cebdfcec34fc666:robotics/bsln`

Page source: `baseline-robotics/engineering@c8db8d9fbc8ce8e0524c5ee45cebdfcec34fc666:robotics/bsln/docs/customer/STATION-COMMANDS.md`

[Read on the web](https://docs.baseline-robotics.com/station/commands/) | [Markdown](https://docs.baseline-robotics.com/station/commands.md) | [Documentation index](https://docs.baseline-robotics.com/llms.txt)

## Stations and sessions

A station is the physical robot and its local controller. A session reserves an available station for one owner. The server assigns a station from the requested robot type. The station applies its safety limits to each target. Inspect the [station description](https://docs.baseline-robotics.com/sdk.md#station-description) for its capabilities and the [camera guide](https://docs.baseline-robotics.com/station/cameras.md) for frames.

<a id="how-the-arms-follow-your-commands"></a>
<a id="your-computer-the-server-and-the-station"></a>
<a id="sessions"></a>
<a id="stations"></a>
<a id="arm-variant"></a>
<a id="dimmable-lights"></a>
<a id="ros-and-ros-2"></a>

## Choose Hold, Park, End or E-stop

| Action | Station behavior | Confirmation |
| --- | --- | --- |
| <a id="sessionhold"></a> `session.hold()` | Clears queued chunks and cancels a move. Holds the last permitted target. The session stays open. | Check telemetry for the hold. |
| <a id="sessionpark"></a> `session.park()` | Follows the station's supervised path to `rest`. The session stays open. | Wait for the completed move result. |
| `session.end()` | Requests the configured shutdown and waits for the session to end. | Confirm `ended`. Use an explicit Park first when you need to leave the arms at `rest`. |
| <a id="sessionestop"></a> [E-stop](https://docs.baseline-robotics.com/index.md#emergency-stop) | A delivered stop holds the measured pose, ends the session and leaves motors powered. | Check the fault and session outcome. Follow the [reset eligibility check](https://docs.baseline-robotics.com/api/lifecycle.md#reset-your-own-e-stop) before reuse. |

To request a normal end for your session, enter its ID at the prompt and check the resulting state:

```bash
bash -c '
read -r -p "Session ID: " session_id || exit 1
[[ $session_id =~ ^ses_[[:alnum:]_-]+$ ]] || { printf "%s\n" "Enter a valid session ID." >&2; exit 1; }
bsln stop session "$session_id" &&
bsln get session "$session_id" --json
'
```

## Motion methods

Read the [station description](https://docs.baseline-robotics.com/sdk.md#station-description) for joint units, bounds and advertised capabilities.

| Method | Effect |
| --- | --- |
| <a id="sessionmove_to"></a> `session.move_to(...)` | Move to a named pose or supported target and wait for completion. Check the result before continuing. |
| <a id="sessionset_joints"></a> `session.set_joints(targets)` | Set absolute joint targets that persist until replaced. |
| <a id="sessionsend_targets"></a> `session.send_targets(targets)` | Stream absolute targets with an expiry when updates stop. |
| <a id="sessionsend_velocity_intents"></a> `session.send_velocity_intents(...)` | Stream velocity intents on a station that advertises support. |
| <a id="sessionsend_chunk"></a> `session.send_chunk(targets, dt, t0=...)` | Queue timed absolute targets. Use a single monotonic clock, a consistent joint set and the station's advertised limits. |

## Emergency stop and reset

<a id="clientestop_session"></a>
<a id="clientestop_run"></a>

`client.estop_session(session_id)` requests an emergency stop through HTTP. Keep the [CLI E-stop command](https://docs.baseline-robotics.com/index.md#emergency-stop) ready in a second terminal.

<a id="clientestop_reset_status"></a>
<a id="clientreset_estop"></a>

For an ended session in which you issued the stop, read `client.estop_reset_status(session_id)`. Reset only when the station is safe and the response is eligible. Pass that exact fault ID to `client.reset_estop(session_id, fault_id=...)`. Check the response before starting a new session. If you cannot confirm the outcome, check the current status or contact support.

## Control and timing limits

| Limit in the documented release | Value |
| --- | --- |
| Control and joint feedback rates | 30 Hz control, 15 joint readings per second. |
| Streamed target lifetime | 0.25 seconds. |
| Action chunk | Up to 32 targets, with at most 0.5 seconds between the first and last target. |
| Chunk playout delay | 0.15 seconds. |
| Server rate limit | 60 messages per second. Excess messages are dropped. |
| Session duration | Up to one hour. Read the end reason if the time limit is reached. |

Use the [station description](https://docs.baseline-robotics.com/sdk.md#station-description) for the assigned station's advertised limits. Camera and joint updates arrive independently. Budget for observation age, inference and network variation.

## When the connection drops

If a connection that sent motion closes, the server requests a hold. When the last controller disconnects, the 30-second reconnect window starts. Reconnect to the same session within that window and inspect fresh telemetry before sending motion. If you cannot confirm an E-stop or the station remains faulted, contact Baseline Robotics before reusing it.
