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

IndexError: list index out of range #90

Open
andrestoga opened this issue Nov 10, 2022 · 0 comments
Open

IndexError: list index out of range #90

andrestoga opened this issue Nov 10, 2022 · 0 comments

Comments

@andrestoga
Copy link

andrestoga commented Nov 10, 2022

I'm getting the following traceback error by only exporting a part I imported to OnShape in parasolid format:


Traceback (most recent call last):
  File "/home/andrestoga/python_venv/onshape_ros/bin/onshape-to-robot", line 11, in <module>
    sys.exit(onshape_to_robot.main())
  File "/home/andrestoga/python_venv/onshape_ros/lib/python3.6/site-packages/onshape_to_robot/onshape_to_robot.py", line 239, in main
    buildRobot(tree, np.matrix(np.identity(4)))
  File "/home/andrestoga/python_venv/onshape_ros/lib/python3.6/site-packages/onshape_to_robot/onshape_to_robot.py", line 203, in buildRobot
    addPart(occurrence, matrix)
  File "/home/andrestoga/python_venv/onshape_ros/lib/python3.6/site-packages/onshape_to_robot/onshape_to_robot.py", line 141, in addPart
    mass = massProperties['mass'][0]
IndexError: list index out of range

Any idea of what's happening?

@Gregwar I can dm you an example so you can reproduce the error I'm having in your side, if you want

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