Skip to content

MoveItConfigsBuilder.to_dict leaks generated parameters into opt-out calls #4012

Backlog

Description

@sylvesterkaczmarek

[written by AI]

Description

MoveItConfigsBuilder.to_dict() updates the underlying ParameterBuilder dictionary in place. After one full conversion, to_dict(include_moveit_configs=False) incorrectly includes generated MoveIt parameters.

Steps to reproduce

Using an existing robot MoveIt config package:

from moveit_configs_utils import MoveItConfigsBuilder
builder = MoveItConfigsBuilder("moveit_resources_panda")
builder.parameter("custom", 42)
builder.to_dict()
assert builder.to_dict(include_moveit_configs=False) == {"custom": 42}

Expected behavior

The opt-out call returns only explicitly loaded ParameterBuilder parameters.

Actual behavior

It also returns generated robot descriptions, pipelines, joint limits and other MoveIt parameters. Mutating the returned top-level dictionary can also modify builder state.

Environment

Source: main at 5399d29. Reproduced with a minimal test configuration on macOS, 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