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 set the distance_threshold #23

Open
QAbot-zh opened this issue Mar 22, 2022 · 1 comment
Open

how to set the distance_threshold #23

QAbot-zh opened this issue Mar 22, 2022 · 1 comment

Comments

@QAbot-zh
Copy link

In the Fetchxxx-Env, the env's distance_threshold is set as 0.05 default to determine whether a task is completed successfully. I try to modify it by using env.distance_threshold = 0.01(or other value) because I think 0.05m is too rough for some tasks. But it doesn't work! (When the success_rate is 1.0, the distance between the achieved_goal and the desired_goal is 0.04x, which is larger than I set.)
How should I do to change the conditions for determining whether a task is complete?

@julio-design
Copy link

You can change it directly into the library of gym.
Go to /path/to/lib/python3.9/site-packages/gym/envs/robotics/fetch/reach.py. There you can modify the distance_threshold, object_range and target_range. Also the position of the robot in the robot0:slide0,1,2 variable about x,y,z respectively.
I don't know how to set the variable directly in env but hope this ca help 👍

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