-
Notifications
You must be signed in to change notification settings - Fork 198
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
Minor code cleanups in tf2 #467
Conversation
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
This is more efficient. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
It just makes more sense. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
This should improve compile times for downstream projects. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
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. On a similar note, what about common linter (and cppcheck
) tests on this package?
I noticed this comment in the CMakeLists.txt file:
# TODO(clalancette) enable linters once https://github.com/ament/ament_lint/pull/238 lands
It looks like ament/ament_lint#238 has been closed and replaced with the (now merged) ament/ament_lint#299 though. Thoughts? I could put this in a separate PR akin to #464.
Oh, I didn't even check. That would be great @aprotyas ! |
CI is green, and this has an approval. I'm going to go ahead and merge, thanks for the review! |
As discussed in #467: - Enables a subset of relevant linter tests from `ament_lint_common` in `tf2`. - Excludes LinearMath headers (include/tf2/LinearMath) from being linted. - Fixes line-length formatting issues in a few source files, so that there are no lint failures in the current state. Note that individual linters had to be invoked rather than use `ament_lint_auto` because the LinearMath headers should not have linters run on them - see #258 (comment) for more information - and because `ament_lint_auto` does not provide a general way of providing file exclusion lists. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
This series of patches aims to do a bit of minor cleanup on the code in tf2. There should be no functional change with this in place. The changes include:
foo.empty()
instead offoo == ""
std::make_shared
where possible