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

Gravity vector error when gravity is zero #92

Open
Ipuch opened this issue Mar 30, 2023 · 0 comments
Open

Gravity vector error when gravity is zero #92

Ipuch opened this issue Mar 30, 2023 · 0 comments

Comments

@Ipuch
Copy link
Contributor

Ipuch commented Mar 30, 2023

Traceback (most recent call last):
  File "/home/puchaud/Projets_Python/Test_Pyomeca/energy_test/energy.py", line 68, in <module>
    biorbd_viz1 = bioviz.Viz(p, segments_center_of_mass_size=0.05)
  File "/home/puchaud/Projets_Python/Pyomeca_github/bioviz/bioviz/__init__.py", line 354, in __init__
    self.__set_gravity_vector()
  File "/home/puchaud/Projets_Python/Pyomeca_github/bioviz/bioviz/__init__.py", line 1206, in __set_gravity_vector
    self.vtk_model.new_gravity_vector(id_matrix, gravity, length, normalization_ratio=0.3, vector_color=(0, 0, 0))
  File "/home/puchaud/Projets_Python/Pyomeca_github/bioviz/bioviz/biorbd_vtk.py", line 1884, in new_gravity_vector
    length = length * normalization_ratio / length
ZeroDivisionError: float division by zero
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