Skip to content

Commit

Permalink
Merge pull request #10 from rail-berkeley/random_reset_small_bug_fix
Browse files Browse the repository at this point in the history
fix random reset z axis bug
  • Loading branch information
charlesxu0124 authored Jan 23, 2024
2 parents f4ddb5c + 137f1e8 commit 50429be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def go_to_rest(self, joint_reset=False):

# Perform Carteasian reset
if self.randomreset: # randomize reset position in xy plane
reset_pose = self.resetpos.copy()
reset_pose[:2] += np.random.uniform(
-self.random_xy_range, self.random_xy_range, (2,)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def go_to_rest(self, joint_reset=False):

# Perform Carteasian reset
if self.randomreset: # randomize reset position in xy plane
reset_pose = self.resetpos.copy()
reset_pose[:2] += np.random.uniform(
-self.random_xy_range, self.random_xy_range, (2,)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def go_to_rest(self, joint_reset=False):

# Perform Carteasian reset
if self.randomreset: # randomize reset position in xy plane
reset_pose = self.resetpos.copy()
reset_pose[:2] += np.random.uniform(
-self.random_xy_range, self.random_xy_range, (2,)
)
Expand Down

0 comments on commit 50429be

Please sign in to comment.