-
Notifications
You must be signed in to change notification settings - Fork 0
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
[WIP] Modify collision parameters #35
Conversation
I refactored the code to only launch the simulation (in local or server mode) from python files in the root directory (now run From there I added another parameter It made me realize there was a bug when setting the collision parameters Now there are a few conflicts (because I removed the code to launch the simulations from files in the |
Thanks @corentinlger There are a few things to be discussed with this PR I think:
So in summary, I suggest to focus this PR on point 1 and the non-argparse part of point 2 above. He we first need to better understand how collision works, as well as to store collision parameters in the state and configs (or alternatively as constants in Regarding point 3 and the use of argparse in point 2, I suggest to create a new issue, potentially linked to a first draft PR with your current code about it (or we can discuss it first). You can also copy-paste my related comments there. In general: try to limit the scope of your PRs to the scope of their associated issue, it will facilitate their review a lot ;) |
Description
Small modifications in collision parameters (the ones of the
soft_sphere
energy function) to make the simulation look less buggy with particle bumps. Artificially increased thesigma
parameter (diameter of the particles), increased theepsilon
(interaction energy scale) and decreased thealpha
(interaction stiffness) to prevent particles from getting too close (it seemed like they were sometimes only colliding when the center of the particles were really close before).It made me notice that there are some 'weird' interactions with the squared objects (that are in fact round in the simulation computation), maybe we could add a special a special epsilon or alpha parameter for the objects to prevent agents to run into them and only be rejected when they are really close.
It also made me think we could add a module like
argparse
to enable specifying the simulation parameters when launching the simulator in cmd line.Related Issue (if applicable)
How to Test
Launch the server
I changed this part in the last commit :
Launch the Panel interface
Check if the simulation seems smoother with the new collisions between particles. Does it seem better @Marsolo1 @clement-moulin-frier ?
Screenshots (if applicable)