Skip to content

How to calculate inverse dynamics in Mujoco #2600

Discussion options

You must be logged in to vote

Hi, I am a MuJoCo user. I hope this helps you.

  1. The equation of motion has a few more terms than what you have written down. Please see here. You should include the passive forces in your calculations since the menagerie ur10e model has joint damping defined.
  2. You may also look at how computations happen step by step. Here

I have written a program while cutting down a lot of clutter. You can update your code based on the following:
The LHS and RHS of the equation of motion are evaluated at an instance. The LHS and RHS are in reference to this equation.

import numpy as np
import matplotlib.pyplot as plt

import mujoco
import mujoco.viewer as viewer


# Load the model (Update the path to yo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dazhongtu
Comment options

Answer selected by dazhongtu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants