launch_ros.substitutions.executable_in_package module

Module for the ExecutableInPackage substitution.

class launch_ros.substitutions.executable_in_package.ExecutableInPackage(*args: Any, **kwargs: Any)

Bases: FindPackagePrefix

Substitution that tries to locate an executable in the libexec directory of a ROS package.

The ROS package is located using ament_index_python.

Raise:

ament_index_python.packages.PackageNotFoundError when package is not found during substitution

Raise:

SubstitutionFailure when executable is not found, or package libexec directory doesn’t exist, during substitution

describe() str

Return a description of this substitution as a string.

property executable: List[launch.substitution.Substitution]

Getter for executable.

classmethod parse(data: Sequence[launch.some_substitutions_type.SomeSubstitutionsType])

Parse a ExecutableInPackage substitution.

perform(context: launch.launch_context.LaunchContext) str

Perform the substitution by locating the executable.

launch_ros.substitutions.executable_in_package.expose_substitution(_)