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

Simulator/Physics: Creation of CollisionObjects #23

Open
josefbehr opened this issue Aug 2, 2013 · 3 comments
Open

Simulator/Physics: Creation of CollisionObjects #23

josefbehr opened this issue Aug 2, 2013 · 3 comments
Assignees
Labels

Comments

@josefbehr
Copy link
Contributor

Is there a specific reason that CollisionObjects are mostly created in the constructor of a simulation object, but never explicitly de-registered or destroyed? Would it be reasonable to include the creation and destruction of CollisionObjects into the setup() and clear() processes?

@ghost ghost assigned josefbehr Aug 2, 2013
@cybott
Copy link
Member

cybott commented Aug 2, 2013

Die you check whether the collision objects are automatically destroyed in the simbody base Class? Currently I cannot check this myself. Setup and cleanup are called during each reset, so collision objects should not be created and destroyed there to avoid the unnecessary overhead.

Josef Behr [email protected] schrieb:

Is there a specific reason that CollisionObjects are mostly created in the constructor of a simulation object, but never explicitly de-registered or destroyed? Would it be reasonable to include the creation and destruction of CollisionObjects into the setup() and clear() processes?


Reply to this email directly or view it on GitHub.

@josefbehr
Copy link
Contributor Author

Apparently, there once was code in SimBody.cpp (https://github.com/nerd-toolkit/nerd/blob/master/nerd/simulator/simulator/Physics/SimBody.cpp#L156) that removed the CollisionObjects, but it has been commented out and stated the owners should take care of that. Either that or the code is de-commented, I guess.

@cybott
Copy link
Member

cybott commented Aug 2, 2013

Then the best measure for now is to keep it unchanged and to do a check for memory leaks later. I try to find out why I commented out the delete statements in the first place.

Josef Behr [email protected] schrieb:

Apparently, there once was code in SimBody.cpp (https://github.com/nerd-toolkit/nerd/blob/master/nerd/simulator/simulator/Physics/SimBody.cpp#L156) that removed the CollisionObjects, but it has been commented out and stated the owners should take care of that. Either that or the code is de-commented, I guess.


Reply to this email directly or view it on GitHub.

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

No branches or pull requests

2 participants