You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While debugging an internal development inside Crocoddyl, I noticed that the Jacobians of the different operators in a double pendulum with continuous joints are always identity matrices. Do you think this makes sense? I understand that these Jacobians are identity matrices for double pendulums with revolute or prismatic joints.
Below, I share a code that reproduces this. Just in case, there is a bug:
importnumpyasnpimportpinocchioimportexample_robot_data# Load a double pendulum with both continuous jointspendulum=example_robot_data.load("double_pendulum_continuous")
nq, nv=pendulum.model.nq, pendulum.model.nvassert (nq!=nv)
# Generate random configurations for computing Jacobiansq0=np.random.random(nq)
q1=np.random.random(nq)
J0, J1=pinocchio.dDifference(pendulum.model, q0, q1)
print(J0, J1) # These are identity matrices, which I don't expect to get with random numbers
This discussion was converted from issue #2307 on July 02, 2024 09:37.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear all,
While debugging an internal development inside Crocoddyl, I noticed that the Jacobians of the different operators in a double pendulum with continuous joints are always identity matrices. Do you think this makes sense? I understand that these Jacobians are identity matrices for double pendulums with revolute or prismatic joints.
Below, I share a code that reproduces this. Just in case, there is a bug:
Beta Was this translation helpful? Give feedback.
All reactions