Skip to content

Conversation

DynamicPoet
Copy link

To solve “UnboundLocalError: local variable ‘gripper open’ referenced before assignment” when created a new task and input 'd' for run demo by executing task_builder.py

To solve “UnboundLocalError: local variable ‘gripper open’ referenced before assignment” when created a new task and input 'd' for run demo by executing task_builder.py
@@ -369,6 +369,7 @@ def get_demo(self, record: bool = True,
done = False
success = False
while not done:
gripper_open = 1.0
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this should be moved below line 340 instead. Otherwise, you will overwrite the value that gripper_open has when record=True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants