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

High attribute values can causes NaN in motor values for agents #25

Open
Marsolo1 opened this issue Mar 7, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working Low priority

Comments

@Marsolo1
Copy link
Collaborator

Marsolo1 commented Mar 7, 2024

Description

Setting very high values for some agent's attributes (such as friction or theta mul causes motor values to become NaN, and crashes the app.

Steps to Reproduce

  • Launch the server and web interface;
  • select one or more agent and set the friction value to 1000

This should crash the interface (not the server), and if launched in debug mode, we can see that a ValueError is raised because one of the motor attribute is NaN.

Environment (Optional)

  • OS: MacOS
  • Browser: Firefox
  • Python Version: 3.11.7

Screenshots (Optional)

-

@Marsolo1 Marsolo1 added the bug Something isn't working label Mar 7, 2024
@corentinlger
Copy link
Collaborator

Just to note it somewhere, I had the same problem when setting theta_mul and wheels_diameter to large values for some agents.

@corentinlger corentinlger self-assigned this Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Low priority
Projects
None yet
Development

No branches or pull requests

3 participants