The Launch Manager Module¶
This module manages the launching of capabilities
-
class
capabilities.launch_manager.
LaunchManager
(quiet=False, screen=False, nodelet_manager_name=None)[source]¶ Manages multiple launch files which implement capabilities
-
handle_capability_events
(msg)[source]¶ Callback for events recieved on the events topic
Only handles TERMINDATED events, all other events are discarded.
Parameters: msg ( capabilities.msgs.CapabilityEvent
) – ROS message recieved on the events topic
-
run_capability_provider
(provider, provider_path)[source]¶ Runs a given capability provider by launching its launch file
Parameters: - provider (
capabilities.specs.provider.CapabilityProvider
) – provider that should be launched - provider_path (str) – path which the provider spec file is located at
- provider (
-
-
capabilities.launch_manager.
which
(program)[source]¶ Custom versions of the
which
built-in shell commandSearches the pathes in the
PATH
environment variable for a given executable name. It returns the full path to the first instance of the executable found or None if it was not found.Parameters: program (str) – name of the executable to find Returns: Full path to the first instance of the executable, or None Return type: str or None