Package roslib :: Module scriptutil
[frames] | no frames]

Module scriptutil

source code

Warning: do not use this library. It is unstable and most of the routines here have been superceded by other libraries (e.g. rospkg). These routines will likely be *deleted* in future releases.

Functions
 
deprecated(func)
This is a decorator which can be used to mark functions as deprecated.
source code
str
script_resolve_name(*args, **kwargs)
Name resolver for scripts.
source code
xmlrpclib.ServerProxy @raises ValueError if master URI is invalid
get_master(*args, **kwargs)
Get an XMLRPC handle to the Master.
source code
xmlrpclib.ServerProxy
get_param_server(*args, **kwargs)
Returns: ServerProxy XML-RPC proxy to ROS parameter server
source code
Variables
  __package__ = 'roslib'
Function Details

deprecated(func)

source code 

This is a decorator which can be used to mark functions as deprecated. It will result in a warning being emmitted when the function is used.

script_resolve_name(*args, **kwargs)

source code 

Name resolver for scripts. Supports ROS_NAMESPACE. Does not support remapping arguments.

Parameters:
  • name (str) - name to resolve
  • script_name (str) - name of script. script_name must not contain a namespace.
Returns: str
resolved name
Decorators:
  • @deprecated

get_master(*args, **kwargs)

source code 

Get an XMLRPC handle to the Master. It is recommended to use the `rosgraph.masterapi` library instead, as it provides many conveniences.

Returns: xmlrpclib.ServerProxy @raises ValueError if master URI is invalid
XML-RPC proxy to ROS master
Decorators:
  • @deprecated

get_param_server(*args, **kwargs)

source code 
Returns: xmlrpclib.ServerProxy
ServerProxy XML-RPC proxy to ROS parameter server
Decorators:
  • @deprecated