25 #include <boost/shared_ptr.hpp>
47 std::list< std::pair<msgs::Publish, transport::ConnectionPtr> >
52 std::list< std::pair<msgs::Subscribe, transport::ConnectionPtr> >
63 public:
void Init(uint16_t _port);
69 public:
void RunThread();
72 public:
void RunOnce();
84 private:
void ProcessMessage(
const unsigned int _connectionIndex,
85 const std::string &_data);
91 private:
void OnRead(
const unsigned int _connectionIndex,
92 const std::string &_data);
101 private: msgs::Publish GetPublisher(
const std::string &_topic);
113 private:
void RemoveConnection(Connection_M::iterator _connIter);
118 private:
void RemovePublisher(
const msgs::Publish _pub);
123 private:
void RemoveSubscriber(
const msgs::Subscribe _sub);
127 private: std::unique_ptr<MasterPrivate> dataPtr;
A manager that directs topic connections, enables each gazebo network client to locate one another fo...
Definition: Master.hh:39
std::list< std::pair< msgs::Subscribe, transport::ConnectionPtr > > SubList
Definition: Master.hh:53
boost::shared_ptr< Connection > ConnectionPtr
Definition: Connection.hh:50
std::list< std::pair< msgs::Publish, transport::ConnectionPtr > > PubList
Definition: Master.hh:48
std::map< unsigned int, transport::ConnectionPtr > Connection_M
Definition: Master.hh:43
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:59