Pulsar SDK
Pulsar SDK
PULSAR HRI provides two official SDKs built on the exact same architecture, lifecycle, safety contract, and AUGUR Digital Twin models:
| Pulsar Python SDK | Pulsar Rust SDK | |
|---|---|---|
| Current version | 3.1.0 |
1.1.0 |
| Package / crate | pulsar-sdk (import pulsar_sdk) |
pulsar-rs-sdk (use pulsar_rs_sdk) |
| Maintenance CLI | pulsar-cli |
pulsar-rs-cli |
| Distribution | Pixi (pulsar-forge) & PyPI (pip) |
Pixi (pulsar-forge) & Cargo path dependency (crates.io coming soon) |
| Runtime requirement | Python 3.10–3.13 | Rust 1.85 or newer |
| Error handling | Typed exceptions (SdkError subclasses) |
Result<T, SdkError> (SdkErrorKind) |
| API reference | Python API reference | Rust API reference |
Every guide in this section applies to both SDKs and includes synchronized Python and Rust code tabs. Selecting a language tab switches the other tabs on the page automatically.
Supported environments
- Operating systems: Linux
x86_64, Linuxaarch64, Windowsx86_64(macOS is not currently supported). - Physical actuator firmware:
2.2.5or newer (for firmware below2.2.5, select3.0.0in the version dropdown or update firmware). - CAN adapter firmware:
2.1.3or newer for typed CAN bus load and diagnostics APIs. - Virtual actuators:
pulsar-assets(>= 2.1.1) providingP90,P100,PULSE98-30G,PULSE98-55G,PULSE115-60G, andPULSE115-110G.
What's new in 3.1.0 (Python) / 1.1.0 (Rust)
- Firmware-offloaded safety & watchdog (
>= 2.2.5): active error safety actions (DampedRelease,HoldPosition,LimitTorque) execute directly on actuator firmware and survive host faults, panics, or unexpected disconnects. - Safe defaults & adaptive watchdog: connecting applies
DampedReleaseand a500 mscommand freshness timeout by default. Passcontrol_rate_hzinControlConfiguration(0.0to disable) to size the timeout automatically, or configure per-actuator overrides via constructor options /RealActuatorOptions. - Uniform & per-flag safety configuration:
set_error_action(...)andset_diagnostic_action(...)across actuators, groups, and platforms; state-aware cleanup on drop/exit; structuredSafetyMemberAttemptoutcomes. - Online limit updates: all 9 limit parameters (
TorqueLimit,PositionLimitMin/Max,VelocityLimitMin/Max,PositionProfileVelocityMin/Max,VelocityProfileAccelerationMin/Max) can now be updated duringDRIVE_ACTIVE. - CAN adapter diagnostics & richer discovery:
scan_devices,read_adapter_info,read_can_status,read_can_status_snapshot(CanAdapterStatuspages 0–2),uint32_counter_delta,DeviceInfo.pcb_revision&mcu_uid, andActuatorStatus.can_reset_events. - Rust SDK
1.1.0polish: zero-setup Cargo discovery (no setup helper binary needed), renamedFeatureResult::ok(), canonicalTelemetryItemvariants, andVirtualWorld::step_with_loads_and_names(...).
Start here
- Install Pulsar SDK
- Core concepts and workflow
- Physical actuators or Virtual actuators
- Groups and platforms
- Lifecycle, safety, and recovery