You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit: Done! Sorry, I didn't know drafts were a thing. .
Side notes:
I modified usage() in openni_color_filter.cpp as well as openni_tracking.cpp to fit the rest of the files (default values as well as structure)
I think there is a typo in parse.h at line 212
Now that device id is optional (or as it turns out, a lot of cmd line args seem to be optional), do you think it would be a good idea to update the syntax for usage()? (Like in the previous version of openni_color_filter.cpp - [] for optional params, < and > for required params, etc.)
General changes are (just a checklist to ease the review):
being more flexible with argument count (tolerance when nothing is being passed since everything would default anyway, so no more if (argc < 2)
let device_id be an optional parameter initialized with an empty string, and update args to device_ids
I think it's a bit problematic that, if users update PCL but try to use the old syntax app_name <device_id> instead of the new app_name -device_id <device_id>, the device id given as the first command line argument will not be used and the user will not even know about it. How about the following: call parse_argument for -device_id, if the argument is not found and argc > 1 and argv[1] does not start with a -, then use argv[1] as the device id. So perhaps like this: if(pcl::console::parse_argument(argc, argv, "-device_id", device_id) == -1 && argc > 1 && argv[1][0] != '-') device_id = argv[1];
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Edit: Done! Sorry, I didn't know drafts were a thing. .
Side notes:
openni_color_filter.cppas well asopenni_tracking.cppto fit the rest of the files (default values as well as structure)openni_color_filter.cpp- [] for optional params, < and > for required params, etc.)General changes are (just a checklist to ease the review):
if (argc < 2)device_idbe an optional parameter initialized with an empty string, and updateargs todevice_ids