Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

On dDifference for continuous joints #2307

Closed
cmastalli opened this issue Jun 27, 2024 · 0 comments
Closed

On dDifference for continuous joints #2307

cmastalli opened this issue Jun 27, 2024 · 0 comments

Comments

@cmastalli
Copy link
Member

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:

import numpy as np
import pinocchio
import example_robot_data

# Load a double pendulum with both continuous joints
pendulum = example_robot_data.load("double_pendulum_continuous")
nq, nv = pendulum.model.nq, pendulum.model.nv
assert (nq != nv)

# Generate random configurations for computing Jacobians
q0 = 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
@cmastalli cmastalli changed the title On dDifference for continous joints On dDifference for continuous joints Jun 27, 2024
@stack-of-tasks stack-of-tasks locked and limited conversation to collaborators Jul 2, 2024
@jcarpent jcarpent converted this issue into discussion #2310 Jul 2, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

1 participant