Template Function controller_interface::configure_succeeds

Function Documentation

template<typename T>
bool controller_interface::configure_succeeds(const std::unique_ptr<T> &controller)

Triggers the controller’s configure transition and checks success.

Note

Intentionally calls controller->configure() instead of get_node()->configure() because ControllerInterfaceBase::configure() contains controller-specific configure logic and parameter handling before driving the lifecycle transition.

Parameters:

controller – The controller to test

Throws:

std::runtime_error – if the controller transitions to an unexpected state

Returns:

true if the controller successfully transitions to the expected state, false if it fails to