Class PrimaryClient

Class Documentation

class PrimaryClient

Public Functions

PrimaryClient() = delete
PrimaryClient(const std::string &robot_ip, comm::INotifier &notifier)
~PrimaryClient()
void addPrimaryConsumer(std::shared_ptr<comm::IConsumer<PrimaryPackage>> primary_consumer)

Adds a primary consumer to the list of consumers.

Parameters:

primary_consumer – Primary consumer that should be added to the list

void removePrimaryConsumer(std::shared_ptr<comm::IConsumer<PrimaryPackage>> primary_consumer)

Remove a primary consumer from the list of consumers.

Parameters:

primary_consumer – Primary consumer that should be removed from the list

void start(const size_t max_connection_attempts = 0, const std::chrono::milliseconds reconnection_timeout = urcl::comm::TCPSocket::DEFAULT_RECONNECTION_TIME)
std::deque<ErrorCode> getErrorCodes()

Retrieves previously raised error codes from PrimaryClient. After calling this, recorded errors will be deleted.