45 template <
typename TOrthogonal,
typename TSourceObject>
60 RCLCPP_ERROR(
getLogger(),
"[CbRelayOn] Relay component not available");
69 RCLCPP_INFO(
getLogger(),
"[CbRelayOn] Channel %d turned ON successfully",
channel_);
Client behavior to turn ON a specific relay channel.
CpModbusRelay * relayComponent_
virtual void onEntry() override
CbRelayOn(int channel)
Construct behavior to turn on specified channel.
ClModbusTcpRelay * client_
void onStateOrthogonalAllocation()
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()