Skip to content

Conversation

@thedevmystic
Copy link
Contributor

@thedevmystic thedevmystic commented Jan 29, 2026

Hello respected maintainers and reviewers!
This is Surya!

This PR addresses the following:

  • Seperate declaration from definition for better compilation speed and readability.
  • Refactor functions for better readability.
  • Add new function (create_error_trajectory_point).
  • Add extensive doxygen-style comments.
  • Add tests for new function (create_error_trajectory_point).

  1. If you have question, why I moved (or seperated) it to tolerances.cpp it is because the file was getting way too long for no reason. It would both increase compile time and future maintainance.

  2. If you have question, why I added create_error_trajectory_point it is because we can calculate the current error point and then compare it with tolerances with ease!


A note: This is a continuation of the previous PR #2048 (closed now). Instead of doing new features (new tolerances option) and refactoring in one PR. I split them into 2 PRs one doing refactoring (current) and another future PR adding feature.

This commit addresses the following:
  - Seperate declaration from definition for better compilation
    speed and readability.
  - Add new function (create_error_trajectory_point).
  - Add extensive doxygen-style comments.
  - Add tests for new function (create_error_trajectory_point).
@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

❌ Patch coverage is 94.06780% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.91%. Comparing base (2c29d46) to head (2bf09f1).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...include/joint_trajectory_controller/tolerances.hpp 73.07% 5 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2133      +/-   ##
==========================================
+ Coverage   84.80%   84.91%   +0.11%     
==========================================
  Files         151      152       +1     
  Lines       14660    14694      +34     
  Branches     1272     1278       +6     
==========================================
+ Hits        12433    12478      +45     
+ Misses       1766     1759       -7     
+ Partials      461      457       -4     
Flag Coverage Δ
unittests 84.91% <94.06%> (+0.11%) ⬆️

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

Files with missing lines Coverage Δ
joint_trajectory_controller/src/tolerances.cpp 100.00% <100.00%> (ø)
...int_trajectory_controller/test/test_tolerances.cpp 100.00% <100.00%> (ø)
...include/joint_trajectory_controller/tolerances.hpp 78.04% <73.07%> (-1.75%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant