|
Protective Stop
|
Backend seam the node depends on, implemented by SoftwareMachineBackend (hosts pstop_c) and HardwareMachineBackend (HTTP-polls the ESP32). More...
#include <backend.hpp>
Public Member Functions | |
| virtual bool | start ()=0 |
| Begins servicing: software binds UDP and runs the machine loop, hardware starts polling. | |
| virtual void | stop ()=0 |
| Stops servicing and leaves the machine in its SAFE state. | |
| virtual MachineSnapshot | snapshot () const =0 |
| Thread-safe copy of the latest state. | |
| virtual bool | configure (const MachineTiming &timing, std::string &error)=0 |
| Applies an already safety-validated timing change. | |
| virtual const char * | name () const =0 |
| Backend kind, "software" or "hardware". | |
Backend seam the node depends on, implemented by SoftwareMachineBackend (hosts pstop_c) and HardwareMachineBackend (HTTP-polls the ESP32).
Implementations are rclcpp-free.
|
pure virtual |
Applies an already safety-validated timing change.
| timing | Timing to apply. |
| error | Set when the backend cannot honour the change. |
Implemented in protective_stop_machine::HardwareMachineBackend, and protective_stop_machine::SoftwareMachineBackend.
|
pure virtual |
Backend kind, "software" or "hardware".
Implemented in protective_stop_machine::HardwareMachineBackend, and protective_stop_machine::SoftwareMachineBackend.
|
pure virtual |
Thread-safe copy of the latest state.
Implemented in protective_stop_machine::HardwareMachineBackend, and protective_stop_machine::SoftwareMachineBackend.
|
pure virtual |
Begins servicing: software binds UDP and runs the machine loop, hardware starts polling.
Implemented in protective_stop_machine::HardwareMachineBackend, and protective_stop_machine::SoftwareMachineBackend.
|
pure virtual |
Stops servicing and leaves the machine in its SAFE state.
Software stops the loop so remotes fail-safe; hardware stops polling while the ESP32 keeps enforcing. Idempotent.
Implemented in protective_stop_machine::HardwareMachineBackend, and protective_stop_machine::SoftwareMachineBackend.