MyoHub / myosuite

MyoSuite is a collection of environments/tasks to be solved by musculoskeletal models simulated with the MuJoCo physics engine and wrapped in the OpenAI gym API.
https://sites.google.com/view/myosuite
Apache License 2.0
845 stars 108 forks source link

Initial robot pose and initial object pose not available. #175

Open anjugopinath opened 4 months ago

anjugopinath commented 4 months ago

'robot_init', # shape(n_objects_jnt) ==> initial robot pose 'object_init' # shape(n_objects_jnt) ==> initial object

I am referring to this file : https://github.com/MyoHub/myosuite/blob/main/myosuite/envs/myo/myodm/data/post_process.py

When I execute it, I get 'Key Error' for the above 2 fields.

vikashplus commented 4 months ago

There was a bug that I thought I fixed but maybe not. There is a typo in the keyname. robot_int ==> robot_init robot_init=data['robot_int'], object_init=data['object_int'],

anjugopinath commented 3 months ago

Hi Vikash,

Thank You for your response. I am still getting an error: image

Also, I wrote some code to print all the keys in the dictionary:


for npz_file in npz_files:
    with np.load(npz_file) as data:
        print(f"Keys in {npz_file}: {list(data.keys())}")

I think only 'time', 'robot' and 'object' are the 3 fields available :

image