Fixes suction cup status tensor shape in terminations.py#4507
Fixes suction cup status tensor shape in terminations.py#4507808brick wants to merge 4 commits intoisaac-sim:mainfrom
Conversation
The termination_manager expects a tensor of [1] but the previous view setup was creating a tensor of [1,1] causing the IsaacLab sim/task to crash Signed-off-by: Raymond Andrade <[email protected]>
Fix suction cup status tensor shape in terminations.py
Greptile OverviewGreptile SummaryChanged Key Changes:
Additional Notes:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Env as ManagerBasedRLEnv
participant TM as TerminationManager
participant CT as cubes_stacked()
participant SG as SurfaceGripper
Env->>TM: compute()
TM->>CT: call termination function
CT->>SG: surface_gripper.state
SG-->>CT: raw state tensor
CT->>CT: view(-1) reshape to [num_envs]
CT->>CT: compare with -1 (open state)
CT->>CT: logical_and with stacked condition
CT-->>TM: boolean tensor [num_envs]
TM->>TM: store in _term_dones[:, i]
TM-->>Env: combined termination signal [num_envs]
|
source/isaaclab_tasks/isaaclab_tasks/manager_based/manipulation/stack/mdp/terminations.py
Show resolved
Hide resolved
|
Hi @808brick. Thanks for reporting this! That looks like a bug indeed! Could you follow Greptiles suggestion and update |
|
Okay. Will have time to work on this on Sunday.
…On Wed, Feb 4, 2026 at 9:47 AM Antoine RICHARD ***@***.***> wrote:
*AntoineRichard* left a comment (isaac-sim/IsaacLab#4507)
<#4507 (comment)>
Hi @808brick <https://github.com/808brick>. Thanks for reporting this!
That looks like a bug indeed! Could you follow Greptiles suggestion and
update place/mdp/terminations.py ? Thanks! @kellyguo11
<https://github.com/kellyguo11> for viz. We may want to get that in both
main and develop.
—
Reply to this email directly, view it on GitHub
<#4507 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACSAP2BZEBNQITIQ2FGUDU34KIWBXAVCNFSM6AAAAACTSDGDTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTQNBYGI4DGNJUGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Signed-off-by: Raymond Andrade <[email protected]>
|
Hey @AntoineRichard, apologies for the delay on this fix. I've gone ahead and made the change requested by greptile. It is worth noting that the average user would never run into the tensor shape mismatch error since the two tasks in the place env [ But I was able to reproduce the tensor shape mismatch error by importing a suction gripper into the environment/task: Which was remedied by changing the shape from So for the sake of modularity, I indeed agree with changes proposed by greptile and do not recommend removing these code blocks as it is still needed for users who may want to complete the place task with a custom suction based robot. Let me know if there are any other additional changes which should be made for this particular issue. |
|
No worries! Thanks for making the changes! @rebeccazhang0707 could you take a look? |
The termination_manager expects a tensor of [1] but the previous view setup was creating a tensor of [1,1] causing the IsaacLab sim/task to crash
Description
Changed the view shape in line 63 of
terminations.pyfromto
Which provided the correct tensor shape expected by
termination_manager.pyFixes # 4506
Type of change
Screenshots
Before
After
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there [Not Needed]