Package default_cfg_fkie :: Module default_cfg :: Class DefaultCfg
[frames] | no frames]

Class DefaultCfg

source code

object --+
         |
        DefaultCfg

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
load(self, delay_service_creation=0.0)
Load the launch file configuration
source code
dict(machine : dict(namespace: dict(group:dict('type' : str, 'description' : str, 'nodes' : [str]))))
getCapabilitiesDesrc(self)
Parses the launch file for capabilities and capability_group parameter and creates dictionary for grouping the nodes.
source code
str
getPath(self, path, package='')
Searches for a launch file.
source code
 
rosservice_list_nodes(self, req)
Callback for the ROS service to get the list with available nodes.
source code
 
rosservice_start_node(self, req)
Callback for the ROS service to start a node.
source code
 
rosservice_reload(self, req) source code
 
rosservice_description(self, req)
Returns the current description.
source code
 
loadParams(self)
Loads all parameter into ROS parameter server.
source code
 
runNode(self, node, autostart=False)
Start the node with given name from the currently loaded configuration.
source code
str
get_ros_home(self)
Returns the ROS HOME path depending on ROS distribution API.
source code

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

Instance Variables
  nodes
the list with names of nodes with name spaces.
  sensors
Sensor description: dict(node name : [(sensor type, sensor name, sensor description), ...])
  robot_descr
robot description as tupel of (type, name, text)
  runService
The service will be created on each load of a launch file to inform the caller about a new configuration.
  listService
The service will be created on each load of a launch file to inform the caller about a new configuration.
Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

getCapabilitiesDesrc(self)

source code 

Parses the launch file for capabilities and capability_group parameter and creates dictionary for grouping the nodes.

Returns: dict(machine : dict(namespace: dict(group:dict('type' : str, 'description' : str, 'nodes' : [str]))))
the capabilities description stored in this configuration

getPath(self, path, package='')

source code 

Searches for a launch file. If package is given, try first to find the launch file in the given package. If more then one launch file with the same name found in the package, the first one will be tacked.

Parameters:
  • path (str) - the file name of the launch file
  • package (str) - the package containing the launch file or an empty string, if the file is an absolute path
Returns: str
the absolute path of the launch file
Raises:

runNode(self, node, autostart=False)

source code 

Start the node with given name from the currently loaded configuration.

Parameters:
  • node (str) - the name of the node
Raises:

get_ros_home(self)

source code 

Returns the ROS HOME path depending on ROS distribution API.

Returns: str
ROS HOME path