-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Improvements to openni_pcd_recorder #672
Conversation
Could you exclude 6b44c54 from this pull request? I think it needs further discussion. Rest is fine, thanks! |
Thanks for the feedback! I created a separate pull request for the all but 6b44c54.
(This of course is because the print statement expects a Of course, if my commit breaks something on ARM we need a different solution. Unfortunately I currently don't have an ARM system at my disposal to check that. I did try to keep everything compatible by using std::size_t where it matters. I only force the actual memory size calculation to use 64-bit unsigned integers in case there is more total memory than a size_t can hold. |
Hm.. looks like we are using uint64_t already in a couple of places, So maybe it's ok (let's wait for the others to comment). Could you clean up this pull request to only contain the type change (use git rebase -i and git push -f)? |
getTotalSystemMemory () | ||
{ | ||
size_t memory = std::numeric_limits<size_t>::max (); | ||
uint64_t memory = std::numeric_limits<uint64_t>::max (); |
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.
I guess this should be:
uint64_t memory = std::numeric_limits<size_t>::max ();
I guess what you meant to write was Yeah, you could use the Got back from my lunch break, I'll clean up and squash things now. |
Yes, that's what I meant and you are right that it doesn't make a difference, only that it makes more sense to me and wouldn't break that easy if we change something later ;). |
I'll clean this one, and rebase it, once we're ok with #673. |
The recorder now has command-line support for device IDs just like openni_viewer.
Also, a problem with free memory and buffer size calculation was fixed.