launch_pal.arg_utils module

class launch_pal.arg_utils.LaunchArgCreator

Bases: object

dict_to_launch_arg(launch_dict: dict, arg_name: str) str
from_yaml(yaml_file: str) dict
get_argument(arg_name: str) launch.actions.DeclareLaunchArgument
is_valid_dict(launch_dict: dict) bool
class launch_pal.arg_utils.LaunchArgumentsBase

Bases: object

This class is a dataclass containing only DeclareLaunchArgument objects.

add_to_launch_description(launch_description: launch.LaunchDescription)

Load a yaml configuration file given by the robot name.

Parameters

launch_descriptionLaunchDescription

The launch description that the Launch Arguments will be added to

launch_pal.arg_utils.parse_launch_args_from_yaml(yaml_file: str) LaunchArgCreator
launch_pal.arg_utils.read_launch_argument(arg_name, context)

Use in Opaque functions to read the value of a launch argument.

Parameters

arg_nameString

Name of the launch argument

contextLaunchContext

The launch context

Returns

valueString

The value of the launch argument