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

How to know the joint order in python #572

Open
liuxiaoyiyixiaoliu opened this issue Mar 22, 2024 · 1 comment
Open

How to know the joint order in python #572

liuxiaoyiyixiaoliu opened this issue Mar 22, 2024 · 1 comment

Comments

@liuxiaoyiyixiaoliu
Copy link

How to know the joint order in python,I used the code below and the order of the joints in the result is messed up and I'm not sure if it is the actual order of the joints that the getGeneralizedCoordinate() function gets.

for i in range(len(robot.getFrames()) ):
print(robot.getFrames()[i].name)

I learned in the issue that the function of specifying joint order has been deleted. Are there any rules for the current joint import order?

@LeZheng-x
Copy link

I think the joint order is consistent with the the local USDF file.It means that the joint that appears first will be in the same position when indexing.
You can click on the robot under the Unity simulator. Then the corresponding joint sequence will appear on the right. If I remember correctly, this is consistent with the order in which the joints appear in the USDF file.
Hope it helps you!

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