Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collect_demonstrations.py #48

Open
wangair opened this issue Nov 19, 2024 · 2 comments
Open

collect_demonstrations.py #48

wangair opened this issue Nov 19, 2024 · 2 comments

Comments

@wangair
Copy link

wangair commented Nov 19, 2024

Hello, thank you for your excellent contribution!I want to collect some demonstrations by running “collect_demonstrations.py --controller OSC_POSE --camera agentview --num-demonstration 50 --rot-sensitivity 1.5 --bddl-file /home/gc/LIBERO/libero/libero/bddl_files/libero_goal/turn_on_the_stove.bddl --robots Panda”. But I met the below error.How can I solve it?

Traceback (most recent call last):
File "scripts/collect_demonstration.py", line 315, in
env.viewer.add_keypress_callback("any", device.on_press)
TypeError: add_keypress_callback() takes 2 positional arguments but 3 were given

@GuHuangAI
Copy link

@wangair Hello, have you solved this problem?

@GuHuangAI
Copy link

GuHuangAI commented Dec 24, 2024

@wangair This problem occurred when your robosuite's version >= 1.4.0.
Finally, I solved this issue by commenting the line 315-317, instead, adding "env.viewer.add_keypress_callback(device.on_press)"

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

No branches or pull requests

2 participants