-
Notifications
You must be signed in to change notification settings - Fork 56
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
optimize my model #1578
base: main
Are you sure you want to change the base?
optimize my model #1578
Conversation
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.
I like it. Minor comments.
tools/machine-learning/mujoco/learned-identification/pyproject.toml
Outdated
Show resolved
Hide resolved
tools/machine-learning/mujoco/learned-identification/scripts/render_best.py
Outdated
Show resolved
Hide resolved
|
||
def simulate_recording( | ||
spec: mj.MjSpec, | ||
recorded_actuators: npt.NDArray[np.float64], |
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.
recorded_actuators: npt.NDArray[np.float64], | |
recorded_motor_commands: npt.NDArray[np.float64], |
I found it a little bit confusing. Would rename it in all places.
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.
actuator
is the correct terminology in mujoco
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.
Yes, but it's just an actuator command, not a complete actuator. How about recorded_actuator_commands
?
I would prefer Hulk's convention, which is motor
, but I'm fine with Mujoco's terminology if you prefer that
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 not a motor command in the HULKs nomenclature. We use this name to describe stiffnesses and positions combined, here, we are only talking about positions, in the space mujoco accepts for setting actuators.
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.
Yes, but I think that's still better than recorded_actuators
, because that could also be some sensor value. I think it's not clear, that this is our control signal
tools/machine-learning/mujoco/learned-identification/src/learned_identification/actuator.py
Show resolved
Hide resolved
45aa0dd
to
82d3751
Compare
Why? What?
Introduce optuna based actuator identification of the mujoco model.
ToDo / Known Issues
none
Ideas for Next Iterations (Not This PR)
many...
How to Test
uv run scripts/run.py --spec ../model/scene.xml --recording recording.mcap --study study01