Skip to content

Commit

Permalink
fix data path, rm base_action print
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkFzp committed Oct 23, 2023
1 parent 85da580 commit d172494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion aloha_scripts/constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### Task parameters
import os

DATA_DIR = '~/interbotix_ws/src/aloha/aloha_scripts/data'
DATA_DIR = os.path.expanduser('~/data')
TASK_CONFIGS = {
'aloha_wear_shoe':{
'dataset_dir': DATA_DIR + '/aloha_wear_shoe',
Expand Down
1 change: 0 additions & 1 deletion aloha_scripts/real_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ def step(self, action, base_action=None):
angular_vel_limit = 0.5
base_action_linear = np.clip(base_action[0], -linear_vel_limit, linear_vel_limit)
base_action_angular = np.clip(base_action[1], -angular_vel_limit, angular_vel_limit)
print(f'base_action: {base_action}')
self.tracer.SetMotionCommand(linear_vel=base_action_linear, angular_vel=base_action_angular)
time.sleep(DT)
return dm_env.TimeStep(
Expand Down

0 comments on commit d172494

Please sign in to comment.