|
Hormodular 1.0
Locomotion gait discovery by using digital hormones on modular robots
|
Device that connects different modules for communications. More...
#include <Connector.hpp>

Public Member Functions | |
| Connector () | |
| bool | connectTo (Connector *remoteConnector) |
| Connects a remote connector to this connector. | |
| bool | sendHormones () |
| Send the hormones in the output buffer to their destination modules. | |
| bool | addOutputHormone (Hormone outputHormone) |
| Adds a Hormone to the output buffer. | |
| bool | clearInputBuffer () |
| Deletes all the hormones stored in the input buffer. | |
| int | getLocalOrientation () const |
| Returns the local orientation of the connector with respect to the connected module. | |
| void | setLocalOrientation (int localOrientation) |
| Sets the local orientation of the connector with respect to the connected module. | |
| std::vector< Hormone > | getInputBuffer () |
| Returns the hormones in the input buffer. | |
| Connector * | getRemoteConnector () |
| Returns a pointer to the remote connector. | |
Private Member Functions | |
| bool | addInputHormone (Hormone inputHormone) |
Private Attributes | |
| std::vector< Hormone > | inputBuffer |
| std::vector< Hormone > | outputBuffer |
| Connector * | remoteConnector |
| int | localOrientation |
Device that connects different modules for communications.
1.7.4