-
Notifications
You must be signed in to change notification settings - Fork 938
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
using LOGNAME variable rather than strings for logging #1079
using LOGNAME variable rather than strings for logging #1079
Conversation
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.
In other files, we have used a static variable LOGNAME
, which I would prefer here as well.
I think, we shouldn't clutter the class's API with another member variable.
If you insist in using a member variable, I would prefer to name it LOGNAME
as well. What do you think?
@rhaschke I'm not sure that declaring the variable outside the class would work. In this case |
The single use case in |
I agree with @rhaschke's point that the I also agree that there shouldn't be function code in the Perhaps Please document this new "standard" on the Contributing page: |
@rhaschke Requested changes made. I also made the same formatting change to |
* Off by one in getAverageSegmentDuration * Case for one waypoint Co-authored-by: AndyZe <andyz@utexas.edu> * Warn if too few waypoints to get duration Co-authored-by: AndyZe <andyz@utexas.edu> * Discount first duration_from_previous from average duration if it is 0 * Restore empty duration from previous check as per Andy's suggestion * Changed warning message for case with 1 segment with 0 duration to be distinct from empty durations Co-authored-by: AndyZe <andyz@utexas.edu> Co-authored-by: Henning Kayser <henningkayser@picknik.ai> Co-authored-by: AndyZe <zelenak@picknik.ai>
Description
Using
name_
variable for logging rather than"robot_state"
Checklist