Skip to content
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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

optimize my model #1578

wants to merge 8 commits into from

Conversation

schmidma
Copy link
Member

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

@schmidma schmidma requested a review from schluis January 12, 2025 09:47
@schmidma schmidma enabled auto-merge January 12, 2025 09:47
@schluis schluis self-assigned this Jan 12, 2025
Copy link
Contributor

@schluis schluis left a 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.


def simulate_recording(
spec: mj.MjSpec,
recorded_actuators: npt.NDArray[np.float64],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Member Author

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

Copy link
Contributor

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

Copy link
Member Author

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.

Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Request for Review
Development

Successfully merging this pull request may close these issues.

2 participants