Manager of connections.  
 More...
#include <transport/transport.hh>
|  | 
| void | Advertise (const std::string &_topic, const std::string &_msgType) | 
|  | Advertise a topic. 
 | 
|  | 
| ConnectionPtr | ConnectToRemoteHost (const std::string &_host, unsigned int _port) | 
|  | Connect to a remote server. 
 | 
|  | 
| void | Fini () | 
|  | Finalize the connection manager. 
 | 
|  | 
| void | GetAllPublishers (std::list< msgs::Publish > &_publishers) | 
|  | Explicitly update the publisher list. 
 | 
|  | 
| void | GetTopicNamespaces (std::list< std::string > &_namespaces) | 
|  | Get all the topic namespaces. 
 | 
|  | 
| bool | Init (const std::string &_masterHost, unsigned int _masterPort) | 
|  | Initialize the connection manager. 
 | 
|  | 
| bool | IsRunning () const | 
|  | Is the manager running? 
 | 
|  | 
| void | RegisterTopicNamespace (const std::string &_name) | 
|  | Register a new topic namespace. 
 | 
|  | 
| void | RemoveConnection (ConnectionPtr &_conn) | 
|  | Remove a connection from the manager. 
 | 
|  | 
| void | Run () | 
|  | Run the connection manager loop. 
 | 
|  | 
| void | RunUpdate () | 
|  | Run the manager update loop once. 
 | 
|  | 
| void | Stop () | 
|  | Stop the conneciton manager. 
 | 
|  | 
| void | Subscribe (const std::string &_topic, const std::string &_msgType, bool _latching) | 
|  | Subscribe to a topic. 
 | 
|  | 
| void | Unadvertise (const std::string &_topic) | 
|  | Unadvertise a topic. 
 | 
|  | 
| void | Unsubscribe (const msgs::Subscribe &_sub) | 
|  | Unsubscribe from a topic. 
 | 
|  | 
| void | Unsubscribe (const std::string &_topic, const std::string &_msgType) | 
|  | Unsubscribe from a topic. 
 | 
|  | 
      
        
          | void gazebo::transport::ConnectionManager::Advertise | ( | const std::string & | _topic, | 
        
          |  |  | const std::string & | _msgType | 
        
          |  | ) |  |  | 
      
 
Advertise a topic. 
- Parameters
- 
  
    | [in] | _topic | The topic to advertise |  | [in] | _msgType | The type of the topic |  
 
 
 
      
        
          | ConnectionPtr gazebo::transport::ConnectionManager::ConnectToRemoteHost | ( | const std::string & | _host, | 
        
          |  |  | unsigned int | _port | 
        
          |  | ) |  |  | 
      
 
Connect to a remote server. 
- Parameters
- 
  
    | [in] | _host | Host to connect to |  | [in] | _port | Port to connect to |  
 
- Returns
- Pointer to the connection; can be null (if connection failed) 
 
 
      
        
          | void gazebo::transport::ConnectionManager::Fini | ( |  | ) |  | 
      
 
Finalize the connection manager. 
 
 
      
        
          | void gazebo::transport::ConnectionManager::GetAllPublishers | ( | std::list< msgs::Publish > & | _publishers | ) |  | 
      
 
Explicitly update the publisher list. 
- Parameters
- 
  
    | [out] | _publishers | The updated list of publishers is written here |  
 
 
 
      
        
          | void gazebo::transport::ConnectionManager::GetTopicNamespaces | ( | std::list< std::string > & | _namespaces | ) |  | 
      
 
Get all the topic namespaces. 
- Parameters
- 
  
    | [out] | _namespaces | The list of namespace is written here |  
 
 
 
      
        
          | bool gazebo::transport::ConnectionManager::Init | ( | const std::string & | _masterHost, | 
        
          |  |  | unsigned int | _masterPort | 
        
          |  | ) |  |  | 
      
 
Initialize the connection manager. 
- Parameters
- 
  
    | [in] | _masterHost | Host where the master is running |  | [in] | _masterPort | Port where the master is running |  
 
- Returns
- true if initialization succeeded, false otherwise 
 
 
      
        
          | bool gazebo::transport::ConnectionManager::IsRunning | ( |  | ) | const | 
      
 
Is the manager running? 
- Returns
- true if running, false otherwise 
 
 
      
        
          | void gazebo::transport::ConnectionManager::RegisterTopicNamespace | ( | const std::string & | _name | ) |  | 
      
 
Register a new topic namespace. 
- Parameters
- 
  
    | [in] | _name | The name of the topic namespace to be registered |  
 
 
 
      
        
          | void gazebo::transport::ConnectionManager::RemoveConnection | ( | ConnectionPtr & | _conn | ) |  | 
      
 
Remove a connection from the manager. 
- Parameters
- 
  
    | [in] | _conn | The connection to be removed |  
 
 
 
      
        
          | void gazebo::transport::ConnectionManager::Run | ( |  | ) |  | 
      
 
Run the connection manager loop. 
Does not return until stopped. 
 
 
      
        
          | void gazebo::transport::ConnectionManager::RunUpdate | ( |  | ) |  | 
      
 
Run the manager update loop once. 
 
 
      
        
          | void gazebo::transport::ConnectionManager::Stop | ( |  | ) |  | 
      
 
Stop the conneciton manager. 
 
 
      
        
          | void gazebo::transport::ConnectionManager::Subscribe | ( | const std::string & | _topic, | 
        
          |  |  | const std::string & | _msgType, | 
        
          |  |  | bool | _latching | 
        
          |  | ) |  |  | 
      
 
Subscribe to a topic. 
- Parameters
- 
  
    | [in] | _topic | The topic to subscribe to |  | [in] | _msgType | The type of the topic |  | [in] | _latching | If true, latch the latest incoming message; otherwise don't |  
 
 
 
      
        
          | void gazebo::transport::ConnectionManager::Unadvertise | ( | const std::string & | _topic | ) |  | 
      
 
Unadvertise a topic. 
- Parameters
- 
  
    | [in] | _topic | The topic to unadvertise |  
 
 
 
      
        
          | void gazebo::transport::ConnectionManager::Unsubscribe | ( | const msgs::Subscribe & | _sub | ) |  | 
      
 
Unsubscribe from a topic. 
- Parameters
- 
  
    | [in] | _sub | A subscription object |  
 
 
 
      
        
          | void gazebo::transport::ConnectionManager::Unsubscribe | ( | const std::string & | _topic, | 
        
          |  |  | const std::string & | _msgType | 
        
          |  | ) |  |  | 
      
 
Unsubscribe from a topic. 
- Parameters
- 
  
    | [in] | _topic | The topic to unsubscribe from |  | [in] | _msgType | The type of the topic |  
 
 
 
The documentation for this class was generated from the following file: