Skip to content

JTC add more options for tolerance configuration #1677

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

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Vedant87
Copy link
Contributor

Closes #1180

Added new Parameters velocity_tolerance and acceleration_tolerance, to the Joint Trajectory Controller.

Copy link

codecov bot commented May 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.69%. Comparing base (483d6ac) to head (dca0485).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1677   +/-   ##
=======================================
  Coverage   85.69%   85.69%           
=======================================
  Files         123      123           
  Lines       11897    11900    +3     
  Branches     1015     1015           
=======================================
+ Hits        10195    10198    +3     
  Misses       1379     1379           
  Partials      323      323           
Flag Coverage Δ
unittests 85.69% <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 86.06% <100.00%> (+0.05%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Thanks for tackling this issue.

This PR is not functional yet, right? However, I added some early review comments.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest adding the parameters constraints.__map_joints.trajectory_velocity, constraints.__map_joints.goal_velocity etc. We cannot easily rename the old parameters, as it would change existing code. If necessary, we have to deprecate the old parameters and add something like
constraints.__map_joints.path.position
constraints.__map_joints.path.velocity
constraints.__map_joints.path.acceleration

Comment on lines +58 to +61
// Read new velocity and acceleration tolerances
velocity_tolerance_ = get_node()->get_parameter("constraints.velocity_tolerance").as_double();
acceleration_tolerance_ =
get_node()->get_parameter("constraints.acceleration_tolerance").as_double();
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't need to use get_parameter() method. Have a look at the structure params_ , generate_parameter_library automatically fills this.

@Vedant87
Copy link
Contributor Author

Thanks for tackling this issue.

This PR is not functional yet, right? However, I added some early review comments.

Yes this PR is still a work in progress, have been busy with other work hence haven't got enough time to complete this.

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.

[JTC] Add more options for tolerance configuration
2 participants