#include <Device.h>
Public Member Functions | |
virtual void | buildDevice ()=0 |
Device (byte id, TransportLayer *transportLayer) | |
virtual void | deviceAck (const DeviceAck *ack) |
byte | getId () |
bool | isReady () |
void | setId (byte id) |
void | setReady (bool ready) |
virtual void | update (const DeviceMessage *deviceMessage)=0 |
virtual void | write ()=0 |
Protected Attributes | |
ros::NodeHandle | _nodeHandle |
TransportLayer * | _transportLayer |
Private Attributes | |
byte | _id |
bool | _ready |
robotican_hardware::Device::Device | ( | byte | id, |
TransportLayer * | transportLayer | ||
) |
Definition at line 7 of file Device.cpp.
virtual void robotican_hardware::Device::buildDevice | ( | ) | [pure virtual] |
Implemented in robotican_hardware::CloseLoopMotorWithPotentiometer, robotican_hardware::CloseLoopMotorWithEncoder, robotican_hardware::CloseLoopMotor, robotican_hardware::OpenLoopMotor, robotican_hardware::Imu, robotican_hardware::Servo, robotican_hardware::RiCMotor, robotican_hardware::Battery, robotican_hardware::Ultrasonic, robotican_hardware::Relay, robotican_hardware::Gps, and robotican_hardware::Switch.
void robotican_hardware::Device::deviceAck | ( | const DeviceAck * | ack | ) | [virtual] |
Reimplemented in robotican_hardware::Imu, robotican_hardware::Ultrasonic, robotican_hardware::Servo, robotican_hardware::RiCMotor, robotican_hardware::Battery, robotican_hardware::Relay, robotican_hardware::Switch, and robotican_hardware::Gps.
Definition at line 29 of file Device.cpp.
byte robotican_hardware::Device::getId | ( | ) |
Definition at line 13 of file Device.cpp.
bool robotican_hardware::Device::isReady | ( | ) |
Definition at line 25 of file Device.cpp.
void robotican_hardware::Device::setId | ( | byte | id | ) |
Definition at line 17 of file Device.cpp.
void robotican_hardware::Device::setReady | ( | bool | ready | ) |
Definition at line 21 of file Device.cpp.
virtual void robotican_hardware::Device::update | ( | const DeviceMessage * | deviceMessage | ) | [pure virtual] |
Implemented in robotican_hardware::CloseLoopMotorWithPotentiometer, robotican_hardware::CloseLoopMotor, robotican_hardware::OpenLoopMotor, robotican_hardware::Imu, robotican_hardware::Servo, robotican_hardware::Ultrasonic, robotican_hardware::RiCMotor, robotican_hardware::Battery, robotican_hardware::Relay, robotican_hardware::Gps, and robotican_hardware::Switch.
virtual void robotican_hardware::Device::write | ( | ) | [pure virtual] |
Implemented in robotican_hardware::CloseLoopMotorWithPotentiometer, robotican_hardware::CloseLoopMotorWithEncoder, robotican_hardware::CloseLoopMotor, robotican_hardware::OpenLoopMotor, robotican_hardware::Imu, robotican_hardware::Servo, robotican_hardware::Ultrasonic, robotican_hardware::RiCMotor, robotican_hardware::Battery, robotican_hardware::Gps, robotican_hardware::Switch, and robotican_hardware::Relay.
byte robotican_hardware::Device::_id [private] |
bool robotican_hardware::Device::_ready [private] |