Skip to content

Commit

Permalink
fix move_group_capabilities usage (#3018) (#3034)
Browse files Browse the repository at this point in the history
(cherry picked from commit 56d1ab1)

Co-authored-by: Michael Ferguson <mfergs7@gmail.com>
Co-authored-by: Sebastian Jahr <sebastian.jahr@picknik.ai>
  • Loading branch information
3 people authored Nov 16, 2024
1 parent dbdb942 commit 6883a07
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion moveit_configs_utils/moveit_configs_utils/launches.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,12 @@ def generate_move_group_launch(moveit_config):
)
)
# inhibit these default MoveGroup capabilities (space separated)
ld.add_action(DeclareLaunchArgument("disable_capabilities", default_value=""))
ld.add_action(
DeclareLaunchArgument(
"disable_capabilities",
default_value=moveit_config.move_group_capabilities["disable_capabilities"],
)
)

# do not copy dynamics information from /joint_states to internal robot monitoring
# default to false, because almost nothing in move_group relies on this information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ class MoveItConfigs:
# A dictionary that has the sensor 3d configuration parameters.
sensors_3d: Dict = field(default_factory=dict)
# A dictionary containing move_group's non-default capabilities.
move_group_capabilities: Dict = field(default_factory=dict)
move_group_capabilities: Dict = field(
default_factory=lambda: {"capabilities": "", "disable_capabilities": ""}
)
# A dictionary containing the overridden position/velocity/acceleration limits.
joint_limits: Dict = field(default_factory=dict)
# A dictionary containing MoveItCpp related parameters.
Expand Down

0 comments on commit 6883a07

Please sign in to comment.