-
Notifications
You must be signed in to change notification settings - Fork 948
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
Add named logging with LOGNAME to OMPL interface #2211
Conversation
I think I used the wrong clang-format configurations, I will fix it. |
Tavis reports failing tests in |
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.
makes sense
Just curious, is there another way to quickly check which tests failed on Travis, besides reading through the XML output? |
The short summaries are listed at the bottom of the log: https://travis-ci.com/github/ros-planning/moveit/jobs/362068846#L1837 |
Aaah, I looked over it, sorry. Thank you :) |
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 requested some small changes, but overall this looks good. Thanks!
moveit_planners/ompl/ompl_interface/src/detail/constrained_goal_sampler.cpp
Outdated
Show resolved
Hide resolved
Or is the preferred way to do `ompl_interface::LOGNAME` in all the log statements?
LOGNAME should not be used with a namespace definition. If you do, I guess it would mean you're lying. :-)
|
I must admit I don't really understand what I did. From what I understand (after some googling) the constexpr adheres to normal namespace behavior in this context. The LOGNAME's in the rest of the file work because they are used inside class methods that are defined inside the same namespace, and therefore LOGNAME is available. Ideally, I would like to extend the namespace scope to the end of the source files, as done in ompl_planner_manager.cpp. It would make the code less verbose. But that's probably worth a separate issue / pull request. |
Codecov Report
@@ Coverage Diff @@
## master #2211 +/- ##
==========================================
- Coverage 57.71% 57.71% -0.01%
==========================================
Files 326 326
Lines 25663 25662 -1
==========================================
- Hits 14811 14810 -1
Misses 10852 10852
Continue to review full report at Codecov.
|
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.
looks good now and @mamoll's nit was integrated. Merging.
Description
As is done in other parts of MoveIt #1079 #1179, this pull request adds named logging to all source files of the
moveit_planners_ompl
package. (For some files with a single log statement, it might be overkill, but it is consistent...)Important I'm not confident whether it is ok to put this outside a namespace. But in most source files of the OMPL interface, all code is put outside of a namespace and all names are prepended with
ompl_interface::
. Maybe this is worth another cleanup? Or is there a reason for this?Checklist