41 template <
typename TOrthogonal,
typename TSourceObject>
52 RCLCPP_INFO(
getLogger(),
"[CbAllRelaysOff] Turning OFF all channels");
56 RCLCPP_ERROR(
getLogger(),
"[CbAllRelaysOff] Relay component not available");
65 RCLCPP_INFO(
getLogger(),
"[CbAllRelaysOff] All channels turned OFF successfully");
70 RCLCPP_ERROR(
getLogger(),
"[CbAllRelaysOff] Failed to turn OFF all channels");
Client behavior to turn OFF all relay channels simultaneously.
CpModbusRelay * relayComponent_
virtual void onEntry() override
void onStateOrthogonalAllocation()
ClModbusTcpRelay * client_
virtual ~CbAllRelaysOff()
SMACC2 Client for controlling Modbus TCP relays.
Component that handles Modbus coil read/write operations for 8-channel relay.
bool writeAllCoils(bool state)
virtual rclcpp::Logger getLogger() const
void requiresClient(SmaccClientType *&storage)
void requiresComponent(SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT)
void onStateOrthogonalAllocation()