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

Class Master

source code

object --+
         |
        Master

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, ``xmlrpc.client.ServerProxy``
source code
 
get_multi(self)
:returns:: multicall XMLRPC proxy for communicating with master, ``xmlrpc.client.MultiCall``
source code
 
is_running(self)
Check if master is running.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  ROSMASTER = 'rosmaster'
  ZENMASTER = 'zenmaster'
Properties
  auto
  type
  uri

Inherited from object: __class__

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``

Overrides: object.__init__

is_running(self)

source code 

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