Skip to content

Off by one in getAverageSegmentDuration (#1079) - #1136

Merged
AndyZe merged 1 commit into
moveit:galacticfrom
AndyZe:cherry_pick_off_by_one
Mar 24, 2022
Merged

AndyZe merged 1 commit into
moveit:galacticfrom
AndyZe:cherry_pick_off_by_one

Conversation

@AndyZe

@AndyZe AndyZe commented Mar 24, 2022

Copy link
Copy Markdown
Member

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

mergify Bot commented Mar 24, 2022

Copy link
Copy Markdown

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