Package rospy :: Package impl :: Module init

Module init

source code

Internal use: rospy initialization.

This is mainly routines for initializing the master or slave based on the OS environment.

Functions
 
start_node(environ, resolved_name, master_uri=None, port=None)
Load ROS slave node, initialize from environment variables
source code
 
init_log_handlers() source code
Variables
  DEFAULT_NODE_PORT = 0
  DEFAULT_MASTER_PORT = 11311
  DEFAULT_MASTER_URI = 'http://localhost:11311/'
  __package__ = 'rospy.impl'
Function Details

start_node(environ, resolved_name, master_uri=None, port=None)

source code 

Load ROS slave node, initialize from environment variables

Parameters:
  • environ (dict) - environment variables
  • resolved_name (str) - resolved node name
  • master_uri (str) - override ROS_MASTER_URI: XMlRPC URI of central ROS server
  • port (int) - override ROS_PORT: port of slave xml-rpc node
Returns:
node server instance @rtype roslib.xmlrpc.XmlRpcNode
Raises: