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

An issue occurred in constructing observation_space in human mode.  #14

Open
TejaswiniMedi opened this issue Apr 15, 2021 · 0 comments

Comments

@TejaswiniMedi
Copy link

TejaswiniMedi commented Apr 15, 2021

It appears that the x and y axes have been swapped while constructing observation_space, so are required to be set correctly in 'ofp-v0'.
Here is the corrected version:
observation_low = np.zeros(4 self.n)
observation_high = np.zeros(4
self.n)
observation_low[0::4] = 0 + self.w / 2
observation_low[1::4] = 0 + self.l / 2
observation_low[2::4] = self.min_width
observation_low[3::4] = self.min_length
observation_high[0::4] = self.W - self.w / 2
observation_high[1::4] = self.L - self.l / 2
observation_high[2::4] = max(self.w)
observation_high[3::4] = max(self.l)**

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

1 participant