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

bugfix/623-argos-crash-add-entities-multiple-physics-engines #623

Open
jharwell opened this issue Feb 6, 2020 · 1 comment
Open

bugfix/623-argos-crash-add-entities-multiple-physics-engines #623

jharwell opened this issue Feb 6, 2020 · 1 comment

Comments

@jharwell
Copy link
Owner

jharwell commented Feb 6, 2020

This is not a bug in my code, but a bug in ARGoS that I have to work around (for
the moment anyway, until Carlo fixes it; I don't know where the problem is,
after several hours of looking). The root issue is that when you have multiple
physics engines, all entities created with new MUST be passed a "final" location
in order to have them be associated with the correct engine. What I am currently
doing, which is to create the entity with a temporary location (defaults to the
origin), and then call MoveTo() on various randomly generated locations until I
find one that is collision free does not work. The entity still thinks it is
associated with whatever engine is controlling the origin, rather than whichever
entity is controlling the collision free location I moved it to.

The workaround is to do more dynamic memory management, which is not the best,
but it is necessary for now.

@jharwell
Copy link
Owner Author

jharwell commented Feb 6, 2020

Leaving issue open even though the fix is merged so I remember to remove the workaround once the issue is fixed.

jharwell added a commit that referenced this issue Feb 6, 2020
- Workaround for now, until fixed in ARGoS master. I don't know how to fix it in
  ARGoS, otherwise I would.

+semver: bugfix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant