Skip to content

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, Linux aarch64, Windows x86_64 (macOS is not currently supported).
  • Physical actuator firmware: 2.2.5 or newer (for firmware below 2.2.5, select 3.0.0 in the version dropdown or update firmware).
  • CAN adapter firmware: 2.1.3 or newer for typed CAN bus load and diagnostics APIs.
  • Virtual actuators: pulsar-assets (>= 2.1.1) providing P90, P100, PULSE98-30G, PULSE98-55G, PULSE115-60G, and PULSE115-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 DampedRelease and a 500 ms command freshness timeout by default. Pass control_rate_hz in ControlConfiguration (0.0 to disable) to size the timeout automatically, or configure per-actuator overrides via constructor options / RealActuatorOptions.
  • Uniform & per-flag safety configuration: set_error_action(...) and set_diagnostic_action(...) across actuators, groups, and platforms; state-aware cleanup on drop/exit; structured SafetyMemberAttempt outcomes.
  • Online limit updates: all 9 limit parameters (TorqueLimit, PositionLimitMin/Max, VelocityLimitMin/Max, PositionProfileVelocityMin/Max, VelocityProfileAccelerationMin/Max) can now be updated during DRIVE_ACTIVE.
  • CAN adapter diagnostics & richer discovery: scan_devices, read_adapter_info, read_can_status, read_can_status_snapshot (CanAdapterStatus pages 0–2), uint32_counter_delta, DeviceInfo.pcb_revision & mcu_uid, and ActuatorStatus.can_reset_events.
  • Rust SDK 1.1.0 polish: zero-setup Cargo discovery (no setup helper binary needed), renamed FeatureResult::ok(), canonical TelemetryItem variants, and VirtualWorld::step_with_loads_and_names(...).

Start here

  1. Install Pulsar SDK
  2. Core concepts and workflow
  3. Physical actuators or Virtual actuators
  4. Groups and platforms
  5. Lifecycle, safety, and recovery

Reference