Skip to content

Bring ros2 branch closer to melodic-devel branch and ROS 2 conventions - #80

Merged
mikaelarguedas merged 10 commits into
ros2from
ros2_align_with_melodic
Feb 15, 2018
Merged

mikaelarguedas merged 10 commits into
ros2from
ros2_align_with_melodic

Conversation

@mikaelarguedas

@mikaelarguedas mikaelarguedas commented Feb 9, 2018 •

Copy link
Copy Markdown
Member

This brings class_loader closer to ROS2 styls as well as the current ROS1 melodic version. There is still a significant difference between the ROS1 and ROS2 version but this PR should allow to more easily port patches from one to the next and allows to run ROS2 linters and use stricter compiler options:

Main things in this PR:

  • Respect ROS 2 style (pulled from melodic branch)
  • Update ROS 2-only tests to the ROS 2 style as well
  • Enable linters and compilation with -Wpedantic (copyright test disabled for now as the linter doesnt support copyright in /** comment block)
  • Rename all the headers from .h to .hpp and update the include statements accordingly

Reviewing on a per commit basis would be preferred as well as the code shuffled around will not appear in the per commit diff.

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

dont pass pedantic to dependencies and pass language c++ to cppcheck

use ament lint auto now that there no .h c++ headers anymore

disable -Wgnu-zero-variadic-macro-arguments for console_bridge for now

readd pedantic flag
@mikaelarguedas
mikaelarguedas force-pushed the ros2_align_with_melodic branch from 018d7c3 to a17b7fb Compare February 12, 2018 18:51
@mikaelarguedas

mikaelarguedas commented Feb 14, 2018 •

Copy link
Copy Markdown
Member Author

@dirk-thomas @wjwwood I think this is ready for review.

New round of CI for this and connected PRs:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status (unrelated osrf_pycommon test failures)
  • Windows Build Status (unrelated osrf_pycommon test failures)

Comment thread CMakeLists.txt Outdated
endif()

if(BUILD_TESTING)
# TODO(mikaelarguedas) add copyright test once the linter accepts /** block comments

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment looks like a duplicate. Maybe you wanted to mentioned something different here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I noticed this after the fact and removed it in a later commit: 877bcc2. Thanks for pointing it out though!

Comment thread include/class_loader/class_loader.h Outdated

// *INDENT-OFF* (prevent uncrustify from adding indention below)
#warning Including header <class_loader/class_loader.h> is deprecated, \
include <class_loader/class_loader.hpp> instead.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to indent the wrapped line and still keep the linters happy?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I tried to do that the linter wants to put a tonne of whitespace in, like >8 spaces and that shows in the warning text unfortunately.

Comment thread include/class_loader/class_loader.h Outdated
#ifndef CLASS_LOADER__CLASS_LOADER_H_
#define CLASS_LOADER__CLASS_LOADER_H_

// *INDENT-OFF* (prevent uncrustify from adding indention below)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The INDENT-OFF is not reverted anywhere below.

@dirk-thomas

Copy link
Copy Markdown
Member

Overall looks fine to me (haven't looked too closely). Also some of my comments might be invalid since changes from earlier commits have been changed / reverted in later commits.

@mikaelarguedas

Copy link
Copy Markdown
Member Author

Thanks @dirk-thomas for taking the time to review! I know it's a big diff pretty painful to review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants