facebookresearch / habitat-lab

A modular high-level library to train embodied AI agents across a variety of tasks and environments.
https://aihabitat.org/
MIT License
1.81k stars 460 forks source link

add ignore_object_ids to snap_down API #1971

Closed aclegg3 closed 1 month ago

aclegg3 commented 1 month ago

Motivation and Context

This PR adds optional ignore_object_ids to the snap_down API. This allows particular objects to be ignored in the collision and raycasting checks.

A good example of utility is using snap_down to determine a placement location for an object on the floor. Ideally, the robot's own body would not be considered in the validation checks when locating a placement position. Those ids could be added to the ignore list.

How Has This Been Tested

Added a simple CI test.

Types of changes

Checklist