You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)**
The text was updated successfully, but these errors were encountered:
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)**
The text was updated successfully, but these errors were encountered: