Download fair-comparison/p2-v1/code/lim/tasks.py from OpenGHz/keypose-vs-dense: direct link, hf CLI and curl.
- Browser
- Download file 756 Bytes
-
https://huggingface.co/datasets/OpenGHz/keypose-vs-dense/resolve/main/fair-comparison/p2-v1/code/lim/tasks.py
- Command line
-
hf download hf://datasets/OpenGHz/keypose-vs-dense/fair-comparison/p2-v1/code/lim/tasks.py
-
curl -L -o tasks.py https://huggingface.co/datasets/OpenGHz/keypose-vs-dense/resolve/main/fair-comparison/p2-v1/code/lim/tasks.py
756 Bytes
| """Tasks with an annotated native Panda motion-planning expert. | |
| Each entry names the ManiSkill expert solution module and the actors whose | |
| poses are logged during evaluation. All three tasks use panda_wristcam with | |
| the same state25 (qpos9, qvel9, TCP7) and two-camera RGB layout. | |
| """ | |
| TASKS = { | |
| "StackCube-v1": ("stack_cube", ("cubeA", "cubeB")), | |
| "StackPyramid-v1": ("stack_pyramid", ("cubeA", "cubeB", "cubeC")), | |
| "PegInsertionSide-v1": ("peg_insertion_side", ("peg", "box")), | |
| } | |
| def expert_module(env_id): | |
| import importlib | |
| if env_id not in TASKS: | |
| raise ValueError(f"No annotated expert for {env_id}") | |
| return importlib.import_module( | |
| f"mani_skill.examples.motionplanning.panda.solutions.{TASKS[env_id][0]}" | |
| ) | |