Skip to content
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

Off by one in getAverageSegmentDuration (#1079) #1136

Merged
merged 1 commit into from
Mar 24, 2022

Conversation

AndyZe
Copy link
Member

@AndyZe AndyZe commented Mar 24, 2022

Cherry-pick #1079 to Galactic

* Off by one in getAverageSegmentDuration

* Case for one waypoint

Co-authored-by: AndyZe <[email protected]>

* Warn if too few waypoints to get duration

Co-authored-by: AndyZe <[email protected]>

* 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 <[email protected]>
Co-authored-by: Henning Kayser <[email protected]>
Co-authored-by: AndyZe <[email protected]>
@mergify
Copy link

mergify bot commented Mar 24, 2022

Please target the main branch for development, we will backport the changes to galactic for you if approved and if they don't break API.

@AndyZe AndyZe merged commit a860a95 into moveit:galactic Mar 24, 2022
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