45 template <
typename TOrthogonal,
typename TSourceObject>
60 RCLCPP_ERROR(
getLogger(),
"[CbRelayOff] Relay component not available");
69 RCLCPP_INFO(
getLogger(),
"[CbRelayOff] Channel %d turned OFF successfully",
channel_);
74 RCLCPP_ERROR(
getLogger(),
"[CbRelayOff] Failed to turn OFF channel %d",
channel_);
Client behavior to turn OFF a specific relay channel.
CpModbusRelay * relayComponent_
ClModbusTcpRelay * client_
virtual void onEntry() override
void onStateOrthogonalAllocation()
CbRelayOff(int channel)
Construct behavior to turn off specified channel.
SMACC2 Client for controlling Modbus TCP relays.
Component that handles Modbus coil read/write operations for 8-channel relay.
bool writeCoil(int channel, bool state)
virtual rclcpp::Logger getLogger() const
void requiresClient(SmaccClientType *&storage)
void requiresComponent(SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT)
void onStateOrthogonalAllocation()