Skip to content

Commit

Permalink
filtered is now also allowed to be a positional argument and is now T…
Browse files Browse the repository at this point in the history
…rue by default
  • Loading branch information
m-decoster committed Apr 22, 2024
1 parent d43574a commit 5c0ae73
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions airo_drake/collision/collision_checking.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ def filter_collisions_between_all_body_pairs(
collision_checker: SceneGraphCollisionChecker,
body_indices_one: List[BodyIndex],
body_indices_two: List[BodyIndex],
*,
filtered: bool
filtered: bool = True,
) -> None:
"""Enable or disable collision filtering between all pairs of the bodies listed in body_indices_one and body_indices_two.
When collision filtering is enabled for two bodies, they are allowed to collide.
Expand All @@ -20,7 +19,7 @@ def filter_collisions_between_all_body_pairs(
collision_checker: The collision checker instance to alter.
body_indices_one: A list of body indices.
body_indices_two: A list of body indices.
filtered: Whether or not to filter collisions between these bodies."""
filtered: Whether to filter collisions between these bodies."""

body_combinations = itertools.product(body_indices_one, body_indices_two)
for body_index_1, body_index_2 in body_combinations:
Expand Down

0 comments on commit 5c0ae73

Please sign in to comment.