Skip to content

Pilz Cartesian limits merge fails with custom robot description namespace #4011

Backlog

Description

@sylvesterkaczmarek

[written by AI]

Description

MoveItConfigs.to_dict() hard-codes robot_description_planning when combining Pilz Cartesian and joint limits. A custom robot-description parameter name raises a KeyError. Even with the default namespace, converting the configuration mutates the stored joint limits.

Steps to reproduce

from moveit_configs_utils import MoveItConfigs
c = MoveItConfigs(
    joint_limits={"custom_planning": {"joint_limits": {}}},
    pilz_cartesian_limits={"custom_planning": {"cartesian_limits": {"max_trans_vel": 0.5}}},
)
c.to_dict()

Expected behavior

Combine the limit dictionaries under their configured namespace without modifying the original config.

Actual behavior

KeyError: 'robot_description_planning'. The default namespace also changes the original joint limits dictionary; Cartesian-only configurations raise KeyError.

Environment

Source: main at 5399d29. Reproduced on macOS with 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