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

How to generate demos with Panda #39

Open
feup-jmc opened this issue May 28, 2022 · 1 comment
Open

How to generate demos with Panda #39

feup-jmc opened this issue May 28, 2022 · 1 comment

Comments

@feup-jmc
Copy link

feup-jmc commented May 28, 2022

Hello, I would like to use the existing Panda model to generate assembly task demos much like with Sawyer.

The feature does not seem to exist natively, so I tried hacking it into IKEA by copying the furniture_sawyer_dense.py and furniture_sawyer_gen.py files and renaming all instances of sawyer to panda, but sure enough this doesn't work. The culprit seems to be the fact that the gripper for sawyer has and additional degree of freedom for grip_tip, hence the following error:

Traceback (most recent call last):
  File "~/anaconda3/envs/base/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "~/anaconda3/envs/base/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "~/skill-chaining/furniture/furniture/env/furniture_panda_gen.py", line 748, in <module>
    main()
  File "~/skill-chaining/furniture/furniture/env/furniture_panda_gen.py", line 743, in main
    env = FurniturePandaGenEnv(config)
  File "~/skill-chaining/furniture/furniture/env/furniture_panda_gen.py", line 105, in __init__
    self.reset()
  File "~/skill-chaining/furniture/furniture/env/furniture.py", line 326, in reset
    self._reset(furniture_id=furniture_id, background=background)
  File "~/skill-chaining/furniture/furniture/env/furniture_panda_dense.py", line 220, in _reset
    self._reset_reward_variables()
  File "~/skill-chaining/furniture/furniture/env/furniture_panda_dense.py", line 139, in _reset_reward_variables
    self._update_reward_variables()
  File "~/skill-chaining/furniture/furniture/env/furniture_panda_dense.py", line 177, in _update_reward_variables
    eef_pos = self._get_pos("griptip_site")
  File "~/skill-chaining/furniture/furniture/env/furniture.py", line 3131, in _get_pos
    raise ValueError
ValueError

As I am not too familiar with how these models are defined, I would like to ask for some help in making this change work.

@Xiangyu-Lee
Copy link

Did you successfully generate the demo by using the panda? I have the same question as you. I want to use the baxter to generate the demo.

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