All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Transport.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2012 Nate Koenig
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef _GAZEBO_TRANSPORT_HH_
18 #define _GAZEBO_TRANSPORT_HH_
19 
20 #include <boost/bind.hpp>
21 #include <string>
22 #include <list>
23 
27 
28 namespace gazebo
29 {
30  namespace transport
31  {
35 
42  bool get_master_uri(std::string &_master_host, unsigned int &_master_port);
43 
50  bool init(const std::string &_master_host ="",
51  unsigned int _master_port = 0);
52 
56  void run();
57 
60  void get_topic_namespaces(std::list<std::string> &_namespaces);
61 
64  bool is_stopped();
65 
67  void stop();
68 
70  void fini();
71 
73  void clear_buffers();
74 
78  void pause_incoming(bool _pause);
79 
86  msgs::Response request(const std::string &_worldName,
87  const msgs::Request &_request);
89  }
90 }
91 #endif