setStateProvider

fun setStateProvider(provider: () -> Map<String, Any>)

Sets the provider for robot state data.

This provider is called when a client requests the current state via the get_state message.

Parameters

provider

Function that returns the current robot state as a map