Update warehouse.py
🛠 Fix: Prevent EpisodeInitializationError during reset in Warehouse environment This change improves the robustness of the _move_arms_if_necessary method in the PhasedBoxCarry task by catching and gracefully handling failures in the arm_opener.open_arms_for_prop call.
💥 Problem During episode resets, initialization could fail with the following error:
csharp Copy Edit EpisodeInitializationError(RuntimeError: Failed to remove contact with prop after 100 iterations...) This was due to physical contact between props and pedestals that couldn't be resolved when trying to open arms around them.
✅ Solution Catch the RuntimeError raised by open_arms_for_prop.
Log a detailed warning with the prop’s model name and position.
Retry once by lifting the prop slightly upward (1 cm), then attempting again.
If retry fails, skip that entity instead of crashing the entire episode.
🔒 Benefit Avoids full environment crashes due to bad initial contacts.
Allows training to continue even when minor placement issues occur.
Provides better logging for debugging and scene analysis.
📎 Notes This change only affects initialization robustness. It does not alter reward logic, physics, or agent behavior.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
Dooray! Failure Notice
Failure Notice
Your message sent to
@.***) has failed to be delivered.
Please refer to the below for details.
* Recipient :
@.***)
* Sent time :
2025-04-30T23:15:37
* Subject :
[google-deepmind/deepmind-research] Update warehouse.py (PR #618)
* Remote host said :
Your mail was denied from the receiver.
This message was sent from a notification-only address that cannot accept incoming email.
For more information, please contact ***@***.***
© Dooray!.
Dooray! Failure Notice
Failure Notice
Your message sent to
@.***) has failed to be delivered.
Please refer to the below for details.
* Recipient :
@.***)
* Sent time :
2025-04-30T23:15:42
* Subject :
Re: [google-deepmind/deepmind-research] Update warehouse.py (PR #618)
* Remote host said :
Your mail was denied from the receiver.
This message was sent from a notification-only address that cannot accept incoming email.
For more information, please contact ***@***.***
© Dooray!.