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 sum periods #1395

Merged
merged 4 commits into from
Nov 29, 2024
Merged

Conversation

fmauch
Copy link
Contributor

@fmauch fmauch commented Nov 27, 2024

Sample trajectory based on the sum of periods instead of the absolute time.

This is basically the second part of #1191. In the long run I want to be able to scale the period with a scaling factor in order to artificially slow down / speed up progression in the trajectory. This PR is there to separate the necessary time counting change from the scaling functionality to make things more contained and easier to review.

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.57%. Comparing base (d8b30f8) to head (9e97d9f).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1395      +/-   ##
==========================================
+ Coverage   83.56%   83.57%   +0.01%     
==========================================
  Files         122      122              
  Lines       10987    10991       +4     
  Branches      937      936       -1     
==========================================
+ Hits         9181     9186       +5     
  Misses       1492     1492              
+ Partials      314      313       -1     
Flag Coverage Δ
unittests 83.57% <100.00%> (+0.01%) ⬆️

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

Files with missing lines Coverage Δ
...jectory_controller/joint_trajectory_controller.hpp 100.00% <ø> (ø)
...ory_controller/src/joint_trajectory_controller.cpp 83.90% <100.00%> (+0.04%) ⬆️
...ectory_controller/test/test_trajectory_actions.cpp 97.76% <100.00%> (+0.01%) ⬆️

... and 3 files with indirect coverage changes

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@saikishor saikishor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Doing this way, we are kinda doing it open loop with the time. Am I right?

@fmauch
Copy link
Contributor Author

fmauch commented Nov 28, 2024

Looks good to me.

Doing this way, we are kinda doing it open loop with the time. Am I right?

Yes, that is true. That requires correct period times without missing or skipping a period. Which is why we recently found issues with that and fixed them. From what I can draw from the design concepts this is an assumption we can make here, though.

@saikishor
Copy link
Member

Yes, that is true. That requires correct period times without missing or skipping a period. Which is why we recently found issues with that and fixed them. From what I can draw from the design concepts this is an assumption we can make here, though.

Got it. Thanks for the explanation.

@fmauch
Copy link
Contributor Author

fmauch commented Nov 29, 2024

Semi-binary builds should now also succeed, now that ros-controls/ros2_control#1898 is merged. I cannot restart the checks, though.

@christophfroehlich christophfroehlich merged commit f64c964 into ros-controls:master Nov 29, 2024
17 of 19 checks passed
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