#include <Relay.h>
Public Member Functions | |
virtual void | buildDevice () |
virtual void | deviceAck (const DeviceAck *ack) |
Relay (byte id, TransportLayer *transportLayer, byte pin, std::string serviceName) | |
virtual void | update (const DeviceMessage *deviceMessage) |
virtual void | write () |
Private Member Functions | |
bool | relayCallback (ric_board::RelayRequest &req, ric_board::RelayResponse &res) |
Private Attributes | |
bool | _isChange |
byte | _pin |
bool | _relayState |
ros::ServiceServer | _server |
std::string | _serviceName |
robotican_hardware::Relay::Relay | ( | byte | id, |
TransportLayer * | transportLayer, | ||
byte | pin, | ||
std::string | serviceName | ||
) |
void robotican_hardware::Relay::buildDevice | ( | ) | [virtual] |
Implements robotican_hardware::Device.
void robotican_hardware::Relay::deviceAck | ( | const DeviceAck * | ack | ) | [virtual] |
Reimplemented from robotican_hardware::Device.
bool robotican_hardware::Relay::relayCallback | ( | ric_board::RelayRequest & | req, |
ric_board::RelayResponse & | res | ||
) | [private] |
void robotican_hardware::Relay::update | ( | const DeviceMessage * | deviceMessage | ) | [virtual] |
Implements robotican_hardware::Device.
void robotican_hardware::Relay::write | ( | ) | [virtual] |
Implements robotican_hardware::Device.
bool robotican_hardware::Relay::_isChange [private] |
byte robotican_hardware::Relay::_pin [private] |
bool robotican_hardware::Relay::_relayState [private] |