Quickstart
Virtual actuator with Pulsar Python SDK
Run a PULSE115-60G virtual actuator using AUGUR Digital Twin assets. No physical actuator, power supply, USB cable, or CAN adapter is required.
Install the SDK and assets
Install Pixi first, then create a pixi project environment.
pixi init pulsar-virtual-quickstart
cd pulsar-virtual-quickstart
pixi workspace channel add --prepend https://prefix.dev/pulsarhri/pulsar-forge
pixi add pulsar-sdk pulsar-assets
License notice
pulsar-assets and AUGUR Digital Twin operate under the AUGUR Development Licence (ADL) and AUGUR Commercial License (ACL). Read the AUGUR license before using the digital twins.
Check the installed models:
Run the virtual actuator
Create virtual_quickstart.py:
from pulsar_sdk import (
ControlConfiguration,
Mode,
PulsarActuatorVirtual,
TelemetryItems,
VirtualWorld,
)
world = VirtualWorld()
actuator = PulsarActuatorVirtual(
world,
model="PULSE115-60G",
address=1,
)
with actuator:
actuator.configure(
ControlConfiguration(
mode=Mode.VELOCITY,
telemetry_items=(
TelemetryItems.POSITION,
TelemetryItems.VELOCITY,
),
telemetry_rate_hz=100,
)
)
actuator.enable()
actuator.set_command(1.0)
for _ in range(10):
world.step()
print(actuator.read_telemetry((
TelemetryItems.POSITION,
TelemetryItems.VELOCITY,
)))
actuator.disable()
Run it:
VirtualWorld.step() advances to the next periodic telemetry event and waits for due callbacks. If periodic telemetry is disabled, each call advances one 50 µs model tick.