Gym-fetch

Latest version: v0.2.2

Safety actively analyzes 663899 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.1.0rc12

1. now sample goal offsets for tracking targets once per episode (upon reset, saved in goal_offsets cache)
2. add the following sub-tasks in the table cleaning taskset for faster experiments

python
Fixing the objects in-place
register(id='Clean-i-fixed-v0', entry_point=vec_clean_env, kwargs=dict(
initial_qpos={'object1:joint': [1.35, 0.75, .45, 0, 0., 0., 0.]},
obj_reset={'object0': dict(pos=[1.35, 0.7, 0.42478468]),
'object1': dict(pos=[1.35, 0.8, 0.42478468]), },
goal_sampling={'object0': dict(target="box", range=0, ),
'object1': dict(target="object1", range=0, offset=[0, 0, 0]), },
), **kw)

register(id='Clean-ii-fixed-v0', entry_point=vec_clean_env, kwargs=dict(
obj_reset={'object0': dict(track='box', avoid=['gripper'], range=0, h=0.43456914),
'object1': dict(pos=[1.35, 0.8, 0.42478468]), },
goal_sampling={'object0': dict(target="box", range=0),
'object1': dict(target="object0", range=0), },
), **kw)

register(id='Clean-train-fixed-v0', entry_point=SampleEnv,
kwargs={'fetch:Clean-i-fixed-v0': 0.5, 'fetch:Clean-ii-fixed-v0': 0.5, }, **kw)

register(id='Clean-train-fixed-80-20-v0', entry_point=SampleEnv,
kwargs={'fetch:Clean-i-fixed-v0': 0.8, 'fetch:Clean-ii-fixed-v0': 0.2, }, **kw)

register(id='Clean-fixed-v0', entry_point=vec_clean_env, kwargs=dict(
obj_reset={'object0': dict(pos=[1.35, 0.7, 0.42478468]),
'object1': dict(pos=[1.35, 0.8, 0.42478468]), },
goal_sampling={'object0': dict(target="box", range=0),
'object1': dict(target="box", range=0), },
), **kw)

0.1.0rc11

Task: Cleaning Table

**Primitives**
1. place A into box, both on table.
2. place B into box, with A already inside the box.

**Training Mixture**: 1 + 2, 50:50.

**Test**: Both A and B on table, and place both into the box. (edited)

| Name | Observation Spec | Goal Init/Comment | |
| ----------------- | ---------------- | ------- | ------|
| **Clean-i-v0** | achieved_goal: (6,)<br>desired_goal: (6,)<br>observation: (43,) | place the first object<br>into the box | ![](specs/tasksets/figures/Clean-i-v0.gif)|
| **Clean-ii-v0** | achieved_goal: (6,)<br>desired_goal: (6,)<br>observation: (43,) | place the second object<br>into the box while the<br>first one is already in there. | ![](specs/tasksets/figures/Clean-ii-v0.gif)|
| **Clean-train-v0** | achieved_goal: (6,)<br>desired_goal: (6,)<br>observation: (43,) | 50/50 mixture of both | ![](specs/tasksets/figures/Clean-train-v0.gif)|
| **Clean-v0** | achieved_goal: (6,)<br>desired_goal: (6,)<br>observation: (43,) | Start with both on the<br>table, place both into<br>the box. | ![](specs/tasksets/figures/Clean-v0.gif)|

python
twin_box_envs = [
'fetch:Clean-i-v0',
'fetch:Clean-ii-v0',
'fetch:Clean-train-v0',
'fetch:Clean-v0',
'fetch:Clean-aside-i-v0',
'fetch:Clean-aside-ii-v0',
'fetch:Clean-aside-train-v0',
'fetch:Clean-aside-v0',
]

| **Clean-i-v0** | **distribution** | |
|:--------------:|:----------------:|:-:|
| ![specs/tasksets/figures/Clean-i-v0_init.png?ts=511920](specs/tasksets/figures/Clean-i-v0_init.png?ts=511920) | ![specs/tasksets/figures/Clean-i-v0_reset.png?ts=662350](specs/tasksets/figures/Clean-i-v0_reset.png?ts=662350) | ![specs/tasksets/figures/Clean-i-v0.gif?ts=550842](specs/tasksets/figures/Clean-i-v0.gif?ts=550842) |
| **Clean-ii-v0** | **distribution** | |
| ![specs/tasksets/figures/Clean-ii-v0_init.png?ts=230667](specs/tasksets/figures/Clean-ii-v0_init.png?ts=230667) | ![specs/tasksets/figures/Clean-ii-v0_reset.png?ts=328788](specs/tasksets/figures/Clean-ii-v0_reset.png?ts=328788) | ![specs/tasksets/figures/Clean-ii-v0.gif?ts=276853](specs/tasksets/figures/Clean-ii-v0.gif?ts=276853) |
| **Clean-train-v0** | **distribution** | |
| ![specs/tasksets/figures/Clean-train-v0_init.png?ts=083586](specs/tasksets/figures/Clean-train-v0_init.png?ts=083586) | ![specs/tasksets/figures/Clean-train-v0_reset.png?ts=260712](specs/tasksets/figures/Clean-train-v0_reset.png?ts=260712) | ![specs/tasksets/figures/Clean-train-v0.gif?ts=392835](specs/tasksets/figures/Clean-train-v0.gif?ts=392835) |
| **Clean-v0** | **distribution** | |
| ![specs/tasksets/figures/Clean-v0_init.png?ts=165417](specs/tasksets/figures/Clean-v0_init.png?ts=165417) | ![specs/tasksets/figures/Clean-v0_reset.png?ts=264129](specs/tasksets/figures/Clean-v0_reset.png?ts=264129) | ![specs/tasksets/figures/Clean-v0.gif?ts=193331](specs/tasksets/figures/Clean-v0.gif?ts=193331) |
| **Clean-aside-i-v0** | **distribution** | |
| ![specs/tasksets/figures/Clean-aside-i-v0_init.png?ts=929441](specs/tasksets/figures/Clean-aside-i-v0_init.png?ts=929441) | ![specs/tasksets/figures/Clean-aside-i-v0_reset.png?ts=026328](specs/tasksets/figures/Clean-aside-i-v0_reset.png?ts=026328) | ![specs/tasksets/figures/Clean-aside-i-v0.gif?ts=821052](specs/tasksets/figures/Clean-aside-i-v0.gif?ts=821052) |
| **Clean-aside-ii-v0** | **distribution** | |
| ![specs/tasksets/figures/Clean-aside-ii-v0_init.png?ts=583657](specs/tasksets/figures/Clean-aside-ii-v0_init.png?ts=583657) | ![specs/tasksets/figures/Clean-aside-ii-v0_reset.png?ts=678971](specs/tasksets/figures/Clean-aside-ii-v0_reset.png?ts=678971) | ![specs/tasksets/figures/Clean-aside-ii-v0.gif?ts=530760](specs/tasksets/figures/Clean-aside-ii-v0.gif?ts=530760) |
| **Clean-aside-train-v0** | **distribution** | |
| ![specs/tasksets/figures/Clean-aside-train-v0_init.png?ts=648270](specs/tasksets/figures/Clean-aside-train-v0_init.png?ts=648270) | ![specs/tasksets/figures/Clean-aside-train-v0_reset.png?ts=826200](specs/tasksets/figures/Clean-aside-train-v0_reset.png?ts=826200) | ![specs/tasksets/figures/Clean-aside-train-v0.gif?ts=969260](specs/tasksets/figures/Clean-aside-train-v0.gif?ts=969260) |
| **Clean-aside-v0** | **distribution** | |
| ![specs/tasksets/figures/Clean-aside-v0_init.png?ts=783935](specs/tasksets/figures/Clean-aside-v0_init.png?ts=783935) | ![specs/tasksets/figures/Clean-aside-v0_reset.png?ts=885287](specs/tasksets/figures/Clean-aside-v0_reset.png?ts=885287) | ![specs/tasksets/figures/Clean-aside-v0.gif?ts=693937](specs/tasksets/figures/Clean-aside-v0.gif?ts=693937) |

0.1.0rc10

0.1.0rc9

It turned out that goals that depend on the position of other objects are wrong right after `env.reset()` call, but they are good otherwise (for the rest of the trajectory).

0.1.0rc8

See `rc7` for env list and installation guides.

0.1.0rc7

write_protected: true
---
Cloning and Installing A Specific Version

**For those who do not use pip**, you can pull/checkout specific versions of the repository using a git `tag`. Github integrates with git, such that it shows tagged versions under the `<project-repo>/releases` URL. You can check out the releases for this repo at https://github.com/geyang/gym-fetch/releases. To pull a specific version, just run:

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.