Skip to content

Missing --params-file values become invalid paths in MoveItPy #4024

Backlog

Description

@sylvesterkaczmarek

[written by AI]

Description

get_launch_params_filepaths() returns an error message as a filename when a trailing --params-file lacks a value. It also accepts another option or an empty string as the path. The resulting invalid paths are forwarded to ROS when constructing MoveItPy.

Reproduction

from moveit.utils import get_launch_params_filepaths
get_launch_params_filepaths(["--params-file"])
get_launch_params_filepaths(["--params-file", "--ros-args"])

Expected behavior

Reject missing values with a clear exception.

Actual behavior

Return an invalid filename (an error-message string or command-line option).

Environment

Reproduced at main (5399d29) with Python 3.12.

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