-
Notifications
You must be signed in to change notification settings - Fork 430
Refactor interpolation_method class #2019
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
Refactor interpolation_method class #2019
Conversation
…ect changes in interpolation_method.hpp
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2019 +/- ##
==========================================
- Coverage 84.97% 84.91% -0.06%
==========================================
Files 148 148
Lines 14359 14367 +8
Branches 1230 1230
==========================================
- Hits 12201 12200 -1
- Misses 1731 1740 +9
Partials 427 427
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
christophfroehlich
left a comment
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.
First of all, please ensure that tests pass locally, including pre-commit. (run pre-commit install for the future, and pre-commit run --all to fix the issues now).
I'd appreciate a review from @fmauch because he recently mentioned also that JTC needs some refactoring.
|
Of course, @christophfroehlich. The main issue is that, pre-commit on my computer, don't work as intended, even if I install it via From next time onwards I will run the |
…DevMystic/ros2_controllers into joint-trajectory-controller-refactor
|
I have fixed all stylistic conflicts proposed by |
|
While I didn't changed it. One suggestion is that to change RCLCPP_INFO to RCLCPP_WARN or equivalent, as user's configuration failed knowingly. And it can lead to unnoticed inconsistency. |
joint_trajectory_controller/include/joint_trajectory_controller/interpolation_methods.hpp
Show resolved
Hide resolved
joint_trajectory_controller/include/joint_trajectory_controller/interpolation_methods.hpp
Outdated
Show resolved
Hide resolved
joint_trajectory_controller/include/joint_trajectory_controller/interpolation_methods.hpp
Show resolved
Hide resolved
joint_trajectory_controller/src/joint_trajectory_controller.cpp
Outdated
Show resolved
Hide resolved
fmauch
left a comment
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.
I hope, you don't mind me nitpicking on docstrings, but since most of this PR is adding docstrings, that seems justified :-)
joint_trajectory_controller/include/joint_trajectory_controller/interpolation_methods.hpp
Outdated
Show resolved
Hide resolved
joint_trajectory_controller/include/joint_trajectory_controller/interpolation_methods.hpp
Outdated
Show resolved
Hide resolved
joint_trajectory_controller/include/joint_trajectory_controller/interpolation_methods.hpp
Outdated
Show resolved
Hide resolved
…r/interpolation_methods.hpp Co-authored-by: Felix Exner (fexner) <git@fexner.de>
…r/interpolation_methods.hpp Co-authored-by: Felix Exner (fexner) <git@fexner.de>
fmauch
left a comment
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.
This looks good to me, thanks for iterating :-)
joint_trajectory_controller/include/joint_trajectory_controller/interpolation_methods.hpp
Show resolved
Hide resolved
No need to thank me. It's my pleasure to do something for my beloved open source community 😄. And be a part of ros-controls. If I can make something I use better, then why not. |
…DevMystic/ros2_controllers into joint-trajectory-controller-refactor
|
This series of commits fixes the descriptions and comments, as suggested by @christophfroehlich. This commit addresses,
NOTE: About the CI/CD failure, it doesn't seem like it is due to this PR, or commit. As it indicates failures that are not even touched by the previous commit. Thanks! |
christophfroehlich
left a comment
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.
Minor comments from my side.
joint_trajectory_controller/include/joint_trajectory_controller/interpolation_methods.hpp
Outdated
Show resolved
Hide resolved
joint_trajectory_controller/include/joint_trajectory_controller/interpolation_methods.hpp
Outdated
Show resolved
Hide resolved
No this is a known flaky test. |
Co-authored-by: Christoph Fröhlich <christophfroehlich@users.noreply.github.com>
Co-authored-by: Christoph Fröhlich <christophfroehlich@users.noreply.github.com>
christophfroehlich
left a comment
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.
Thanks for the iteration!
Again, by thanking me, you made me a outsider. The only motive I have, behind this PR, is that I use ROS and I can make it better then why not. I just love the code and the community! That's why I did it. No need to thank me! So, hope you a nice day forward @christophfroehlich. |
|
I haven't looked into the logs before but the deprecation warning is now called always because this is a global variable in the file. I think there is nothing we can do about that. We could silence the warning in joint_trajectory_controller.hpp, but if one uses it from this include then there would not be any warning at all. We should remove it after the next release sync, can you please open a draft PR doing that cleanup? |
|
Done! This PR is opened as PR #2041. |
Hello, there ros2_controllers maintainers!
Again this is Surya! Here this is first batch of joint_trajectory_controller library refactor.
As in the issue #2018, I have discussed with @christophfroehlich, to do refactor in batches.
This batch focus on
interpolation_method.hppI have refactored the following,
Refactored Maps and added reverse map.from_stringfunction.Changed reference ofInterpolationMethodMapin joint_trajectory_controller.cpp toReverseInterpolationMethodMapas it makes much more sense.If it is good, I can move forward to refactor
trajectory.hppandtrajectory.cppto handle edge cases, enhance readability, add comments. As when I was using it, I got segmentation fault (Trying to access memory [nil]).