Package roshlaunch :: 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
xmlrpclib.ServerProxy
get(self)
Returns: XMLRPC proxy for communicating with master
source code
xmlrpclib.MultiCall
get_multi(self)
Returns: multicall XMLRPC proxy for communicating with master
source code
bool
is_running(self)
Check if master is running.
source code
Class Variables
  ROSMASTER = 'rosmaster'
Method Details

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

source code 

Create new Master instance.

Parameters:
  • uri (str) - master URI. Defaults to ROS_MASTER_URI environment variable.
  • type_ (str) - Currently only support 'rosmaster'

get(self)

source code 
Returns: xmlrpclib.ServerProxy
XMLRPC proxy for communicating with master

get_multi(self)

source code 
Returns: xmlrpclib.MultiCall
multicall XMLRPC proxy for communicating with master

is_running(self)

source code 

Check if master is running.

Returns: bool
True if the master is running