Class LocatorRPCInterface

Class Documentation

class LocatorRPCInterface

Shared RPC interface for JSON RPC communication with localization client and map server. See API documentation, chapter 8.

Public Functions

LocatorRPCInterface(const std::string &host, uint16_t port)
virtual ~LocatorRPCInterface()
void login(const std::string &user, const std::string &password)
void refresh()
void logout()
std::string getAboutBuildList()
std::unordered_map<std::string, std::pair<int32_t, int32_t>> getAboutModules()
Poco::DynamicStruct getConfigList()
bool setConfigList(const Poco::DynamicStruct &config)
Poco::JSON::Object getSessionQuery() const
Poco::JSON::Object call(const std::string &method, const Poco::JSON::Object &query_obj)

Protected Functions

Poco::JSON::Object json_rpc_call(Poco::Net::HTTPClientSession &session, const std::string &method, const Poco::JSON::Object &query_obj)

Protected Attributes

std::mutex json_rpc_call_mutex_
Poco::Net::HTTPClientSession session_
std::string session_id_
size_t query_id_