Skip to content

Commit

Permalink
BUGFIX: derived keys were getting dropped as a result there were no e…
Browse files Browse the repository at this point in the history
…e_pose in the roboset data
  • Loading branch information
vikashplus committed Mar 15, 2023
1 parent a8bf20f commit 65b63a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mj_envs/logger/roboset_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def path2dataset(self, path:dict, config_path=None)->dict:

# Derived =====
pose_ee = []
if 'pos_ee' in path_keys or 'rot_ee' in path_keys:
assert ('pos_ee' in path_keys and 'rot_ee' in path_keys), "Both pose_ee and rot_ee are required"
if 'env_infos/obs_dict/pos_ee' in path_keys or 'env_infos/obs_dict/rot_ee' in path_keys:
assert ('env_infos/obs_dict/pos_ee' in path_keys and 'env_infos/obs_dict/rot_ee' in path_keys), "Both pose_ee and rot_ee are required"
dataset['derived/pose_ee'] = np.hstack([path['env_infos/obs_dict/pos_ee'], path['env_infos/obs_dict/rot_ee']])

# Config =====
Expand Down

0 comments on commit 65b63a3

Please sign in to comment.