Commit 17136c6
authored
Fix contact sensor activation for nested rigid bodies (isaac-sim#6259)
## Summary
- use `get_all_matching_child_prims` when activating PhysX contact
report schemas
- continue matching rigid descendants under nested rigid-body trees
instead of stopping at the first rigid body
- add regression coverage for nested rigid bodies receiving
`PhysxContactReportAPI`
## Testing
- ./isaaclab.sh -p -m pytest source/isaaclab/test/sim/test_schemas.py -k
activate_contact_sensors_nested_rigid_bodies -q
- ./isaaclab.sh -p -m py_compile
source/isaaclab/isaaclab/sim/schemas/schemas.py
source/isaaclab/test/sim/test_schemas.py
## Note
- Attempted `./isaaclab.sh -p -m pytest
source/isaaclab_physx/test/sensors/test_contact_sensor.py -k
contact_sensor_threshold -q`, but collection failed because `flaky` is
not installed in the local environment.1 parent e211621 commit 17136c6
3 files changed
Lines changed: 49 additions & 26 deletions
File tree
- source/isaaclab
- changelog.d
- isaaclab/sim/schemas
- test/sim
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
961 | 953 | | |
962 | | - | |
| 954 | + | |
963 | 955 | | |
964 | 956 | | |
965 | 957 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
755 | 782 | | |
756 | 783 | | |
757 | 784 | | |
| |||
0 commit comments