-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sim Library Improvements #116
Conversation
alik-git
commented
Nov 20, 2024
- add an cmd line arg for the h5 file output dir
@@ -6,22 +6,31 @@ | |||
import h5py | |||
import matplotlib.pyplot as plt | |||
import numpy as np |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add the logic to the sim/produce_sim_data to use it as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in 6a65d01
sim/sim2sim.py
Outdated
@@ -252,6 +252,7 @@ def run_mujoco( | |||
"joint_pos": cur_pos_obs.astype(np.float32), | |||
"joint_vel": cur_vel_obs.astype(np.float32), | |||
"prev_actions": actions.astype(np.float32), | |||
"curr_actions": target_q.astype(np.float32), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
current actions are actions listed below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in df09d0d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong, you are now saving latest actions and positions (target_q which are scaled actions).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay should be fixed in 0eb70d3
i renamed actions
to prev_actions
since that is what it is being used as, and use curr_actions
for the output of the model. at the end of the inner loop iteration, I set prev_actions = curr_actions
.