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

Add relative Jacobian block #225

Closed
HosameldinMohamed opened this issue Aug 12, 2021 · 3 comments
Closed

Add relative Jacobian block #225

HosameldinMohamed opened this issue Aug 12, 2021 · 3 comments
Assignees

Comments

@HosameldinMohamed
Copy link
Contributor

Summary

A block similar to the Jacobian block,
Screenshot from 2021-08-12 17-33-27

but provided with 2 frame names as inputs, it gives the relative Jacobian between the 2 frames.

It can implement the iDyntree method

bool KinDynComputations::getRelativeJacobian(const iDynTree::FrameIndex refFrameIndex,
                                             const iDynTree::FrameIndex frameIndex,
                                             iDynTree::MatrixDynSize & outJacobian)

In https://github.com/robotology/idyntree/blob/f9051752ca5a6ca8f3a4f101e4a536fe1eb62c5f/src/high-level/src/KinDynComputations.cpp#L1661-L1663

Motivation

It seems like a clean way to have the relative jacobian since the iDyntree function is already available, we just had to wrap it.

Additional context

We drafted a quick block (with @Giulero's help), it looks like this

Screenshot from 2021-08-12 17-40-09

It was a quick draft to test it with the robot, but I think we can omit the input ${ }^{world} H_{base}$.

@traversaro
Copy link
Member

traversaro commented Aug 12, 2021

Whenever you are ready feel free to open a PR.

@traversaro
Copy link
Member

traversaro commented Aug 21, 2021

It was a quick draft to test it with the robot, but I think we can omit the input ${ }^{world} H_{base}$.

Just to clarify, this happens only because in iDynTree (with default velocity representation settings) the relative jacobian between two links L and C is the $J_{L,C}^{rel} $ matrix such that:

$$ {}^{C[L]} \mathrm{v}_{L,C} = J_{L,C}^{rel} \dot{s} $$

where $s \in \mathbb{R}^{n_{dofs}}$ is the vector of internal joint positions (by the way, this is unfortunatly not fully documented). If the relative jacobian assume some other representation of the relative velocity between two frames, for example one using the absolute/world frame, then a dependency on ${}^W H_B$ could appear.

@traversaro
Copy link
Member

Fixed by #226 .

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

No branches or pull requests

2 participants