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

JTC trajectory end time validation fix (backport #1090) #1140

Merged
merged 1 commit into from
May 22, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented May 22, 2024

The time_from_start member for a JointTrajectoryPoint is monotonically increasing, not a delta time, so I think we can just use the last one in the vector; summing them up seems incorrect. I also moved the points empty check earlier because .back().time_from_start would seg fault with an empty points vector.


This is an automatic backport of pull request #1090 done by Mergify.

Copy link

codecov bot commented May 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (humble@25d8036). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff            @@
##             humble    #1140   +/-   ##
=========================================
  Coverage          ?   86.81%           
=========================================
  Files             ?       86           
  Lines             ?     7486           
  Branches          ?      619           
=========================================
  Hits              ?     6499           
  Misses            ?      753           
  Partials          ?      234           
Flag Coverage Δ
unittests 86.81% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...ory_controller/src/joint_trajectory_controller.cpp 83.76% <100.00%> (ø)
...ory_controller/test/test_trajectory_controller.cpp 99.58% <100.00%> (ø)

@christophfroehlich christophfroehlich merged commit 11e8ad7 into humble May 22, 2024
10 of 11 checks passed
@christophfroehlich christophfroehlich deleted the mergify/bp/humble/pr-1090 branch May 22, 2024 19:57
henrygerardmoore pushed a commit to henrygerardmoore/ros2_controllers that referenced this pull request Jul 19, 2024
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.

2 participants