-
Notifications
You must be signed in to change notification settings - Fork 768
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
Adding default point color to SfmTrack
to fix equality check
#659
Merged
Merged
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b5db391
adding serialization and other functions to enable testing
ayushbaid df4419b
adding track serialization and testable trait
ayushbaid 9d61e5b
improving formatting
ayushbaid f88b456
fixing variable names and comments
ayushbaid c46e3db
adding serialization functions to wrapper
ayushbaid e0cda60
fixing xml serialization issues
ayushbaid 2e86921
reverting SfmTrack to struct
ayushbaid 0ce1db2
printing out the 3d point
ayushbaid 915b439
adding equals function to wrapper
ayushbaid 1d41754
adding inline comment for round trip
ayushbaid 7ae050c
adding default color values to fix equality check
ayushbaid d403006
Merge branch 'develop' into fix/sfmtrack-color
ayushbaid ecb2226
make r,g,b part of constructor w/ default values
johnwlambert 758ece7
add getter for rgb
johnwlambert 7daf01b
make getter const
johnwlambert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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.
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.
Formatting please. Also, a good convention is to have struct/class variables be something like
r_
and then have the initializer list ber_(r)
. This is consistent with Google C++ style which we follow.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 like the style suggestion, but this would involve renaming all of the variables in the class, since none adhere to that guideline. @dellaert would you like to see a big change like that?
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 would vote for it since due to the previous lack of getters, it won't be an API change, so we should be able to maintain backwards compatibility.
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.
Actually, for classes the convention is underscore, for structs it is not (and should not).
It is an API change as these fields are public.
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.
Got it, thanks
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.
Ah you're right. My mistake.