Skip to content

Configuration discovery accepts malformed planner and controller filenames #4020

Backlog

Description

@sylvesterkaczmarek

[written by AI]

Description

Automatic planner and controller discovery accepts malformed filenames because the regular expressions use an unescaped dot in the YAML extension and allow empty names.

Reproduction

Place valid_planning.yaml and bogus_planning-yaml in a configuration package, then call planning_pipelines(load_all=False). Similarly, place valid_controllers.yaml and bogus_controllers-yaml in the config directory and call trajectory_execution().

Expected behavior

Only files with nonempty names and literal _planning.yaml or _controllers.yaml suffixes should be discovered.

Actual behavior

The bogus files produce nonexistent planner paths or spurious controller selection ambiguity. Files named _planning.yaml and _controllers.yaml also cause failures.

Environment

Reproduced on main (5399d29), Python 3.12 and Jazzy launch Python dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions