|
Regilo
A simple C++ library for controlling the Neato XV robot and the Hokuyo scanner.
|
The IController interface is used for all controller classes. More...
#include <controller.hpp>
Public Member Functions | |
| virtual | ~IController ()=default |
| Default destructor. | |
| virtual void | connect (const std::string &endpoint)=0 |
| Connect the controller to a device. More... | |
| virtual bool | isConnected () const =0 |
| Test if the controller is connected. More... | |
| virtual std::string | getEndpoint () const =0 |
| Get the endpoint of device. More... | |
| virtual std::shared_ptr< ILog > | getLog ()=0 |
| Get the current Log. More... | |
| virtual std::shared_ptr< const ILog > | getLog () const =0 |
| Get the current Log (a const variant). More... | |
| virtual void | setLog (std::shared_ptr< ILog > log)=0 |
| Set a Log (it can be shared between more controllers). More... | |
| virtual std::string | sendCommand (const std::string &command)=0 |
| Send a command to the device. More... | |
The IController interface is used for all controller classes.
|
pure virtual |
Connect the controller to a device.
| endpoint | The device endpoint (a path, IP address, etc.). |
Implemented in regilo::SocketController, and regilo::SerialController.
|
pure virtual |
Get the endpoint of device.
Implemented in regilo::SocketController, and regilo::SerialController.
|
pure virtual |
Get the current Log.
Implemented in regilo::StreamController< StreamT >, regilo::StreamController< bai::tcp::socket >, and regilo::StreamController< ba::serial_port >.
|
pure virtual |
Get the current Log (a const variant).
Implemented in regilo::StreamController< StreamT >, regilo::StreamController< bai::tcp::socket >, and regilo::StreamController< ba::serial_port >.
|
pure virtual |
Test if the controller is connected.
Implemented in regilo::StreamController< StreamT >, regilo::StreamController< bai::tcp::socket >, and regilo::StreamController< ba::serial_port >.
|
pure virtual |
Send a command to the device.
| command | A command with all parameters. |
Implemented in regilo::StreamController< StreamT >, regilo::StreamController< bai::tcp::socket >, and regilo::StreamController< ba::serial_port >.
|
pure virtual |
Set a Log (it can be shared between more controllers).
| log | Smart pointer to the Log. |
Implemented in regilo::StreamController< StreamT >, regilo::StreamController< bai::tcp::socket >, and regilo::StreamController< ba::serial_port >.