Package roslaunch :: Module core :: Class Master
[frames] | no frames]

Class Master

source code

Data structure for representing and querying state of master

Instance Methods
 
__init__(self, type_=None, uri=None, auto=None)
Create new Master instance.
source code
 
get_host(self) source code
 
get_port(self)
Get the port this master is configured for.
source code
 
__eq__(self, m2) source code
 
get(self)
:returns:: XMLRPC proxy for communicating with master, ``xmlrpclib.ServerProxy``
source code
 
get_multi(self)
:returns:: multicall XMLRPC proxy for communicating with master, ``xmlrpclib.MultiCall``
source code
 
is_running(self)
Check if master is running.
source code
Class Variables
  ROSMASTER = 'rosmaster'
  ZENMASTER = 'zenmaster'
Method Details

__init__(self, type_=None, uri=None, auto=None)
(Constructor)

source code 

Create new Master instance. :param uri: master URI. Defaults to ROS_MASTER_URI environment variable, ``str`` :param type_: Currently only support 'rosmaster', ``str``

is_running(self)

source code 

Check if master is running. :returns:: True if the master is running, ``bool``