41 template <
typename TOrthogonal,
typename TSourceObject>
52 RCLCPP_INFO(
getLogger(),
"[CbAllRelaysOn] Turning ON all channels");
56 RCLCPP_ERROR(
getLogger(),
"[CbAllRelaysOn] Relay component not available");
65 RCLCPP_INFO(
getLogger(),
"[CbAllRelaysOn] All channels turned ON successfully");
70 RCLCPP_ERROR(
getLogger(),
"[CbAllRelaysOn] Failed to turn ON all channels");
Client behavior to turn ON all relay channels simultaneously.
CpModbusRelay * relayComponent_
ClModbusTcpRelay * client_
void onStateOrthogonalAllocation()
virtual void onEntry() override
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()