28 #ifndef ROSCPP_MASTER_H 29 #define ROSCPP_MASTER_H 60 ROSCPP_DECL
const std::string&
getHost();
69 ROSCPP_DECL
const std::string&
getURI();
80 ROSCPP_DECL
bool check();
88 TopicInfo(
const std::string& _name,
const std::string& _datatype )
113 ROSCPP_DECL
bool getTopics(V_TopicInfo& topics);
ROSCPP_DECL uint32_t getPort()
Get the port where the master runs.
ROSCPP_DECL void setRetryTimeout(ros::WallDuration timeout)
Set the max time this node should spend looping trying to connect to the master.
ROSCPP_DECL const std::string & getURI()
Get the full URI to the master (eg. http://host:port/)
ROSCPP_DECL bool check()
Check whether the master is up.
ROSCPP_DECL bool getTopics(V_TopicInfo &topics)
Get the list of topics that are being published by all nodes.
std::vector< TopicInfo > V_TopicInfo
std::string datatype
Datatype of the topic.
std::vector< std::string > V_string
ROSCPP_DECL bool execute(const std::string &method, const XmlRpc::XmlRpcValue &request, XmlRpc::XmlRpcValue &response, XmlRpc::XmlRpcValue &payload, bool wait_for_master)
Execute an XMLRPC call on the master.
ROSCPP_DECL const std::string & getHost()
Get the hostname where the master runs.
TopicInfo(const std::string &_name, const std::string &_datatype)
ROSCPP_DECL bool getNodes(V_string &nodes)
Retreives the currently-known list of nodes from the master.
std::string name
Name of the topic.
Contains information retrieved from the master about a topic.