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

Axis import problems #21

Open
JanusMaple opened this issue Dec 28, 2021 · 0 comments
Open

Axis import problems #21

JanusMaple opened this issue Dec 28, 2021 · 0 comments

Comments

@JanusMaple
Copy link
Contributor

In some urdf files axis coordinate might be [0.0, 0.0, 0.0], which would cause runtime error for the code in line 2169urdf.py: "value = value / np.linalg.norm(value)".
Thus, it would be better if there is a conditional statement that if math.isclose(np.linalg.norm(value), 0.0), then value = np.array([1.0, 0.0, 0.0], dtype=np.float64).

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

1 participant