Skip to content

Question about the calculation of joint local velocity(lvrt) #55

@ColinZhou1993

Description

@ColinZhou1993

Hello, I am confused about the calculation of joint local velocity(lvrt) when reading code:

lvrt = np.zeros_like(lpos)
lvrt[1:] = quat.to_helical(quat.abs(quat.mul(lrot[1:], quat.inv(lrot[:-1])))) / dt
lvrt[0] = lvrt[1] - (lvrt[3] - lvrt[2])

But in my understanding, something should like this (used in the fk_vel function):
lvrt[1:] = quat.to_helical(quat.abs(quat.inv(quat.mul(lrot[1:]), (lrot[:-1])))) / dt

Am I right? Thanks for your reply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions