-
Notifications
You must be signed in to change notification settings - Fork 352
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
Make inheriting from simulation world possible #317
Make inheriting from simulation world possible #317
Conversation
Can one of the admins verify this patch? |
@alexmillane Hi Alex, would it be possible to merge this? Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you turned the sim world member into a pointer, you should check if it is a nullptr everywhere it is dereferenced, or at least once per function that is using it.
test this please |
@mfehr Done! Thanks for the review Marius! |
ok to test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
I was expecting the CHECK_NOTNULL(unique_ptr) to fail, I vaguely remember there being some issues with that, which is why we are using CHECK(unique_ptr) or CHECK(unique_ptr != nullptr) everywhere for smart pointers, also in the rest of voxblox. But when it didn't fail here I checked and it turns out this was fixed 3 years ago. Good to know :P
Yes! Although I think I did switch to CHECK(unique_ptr) in Kimera as well... bcs earlier versions of glog had this problem. It's really up to you, I can change that to be consistent with voxblox, but, in principle, new users should not have issues. |
Friendly ping @mfehr :) |
This just allows users to be able to inherit from the simulation world to build their own simulation worlds 🚀