Skip to content

Compute velocity using central difference#2080

Merged
sjahr merged 8 commits intomoveit:mainfrom
ibrahiminfinite:ibrahim/central_difference
Apr 13, 2023
Merged

Compute velocity using central difference#2080
sjahr merged 8 commits intomoveit:mainfrom
ibrahiminfinite:ibrahim/central_difference

Conversation

@ibrahiminfinite
Copy link
Copy Markdown
Contributor

@ibrahiminfinite ibrahiminfinite commented Apr 4, 2023

Description

This PR changes the calculations in ServoCalcs to use the central difference to compute the joint velocities more accurately.

Fixes #2077

Checklist

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 4, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@a622fee). Click here to learn what that means.
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2080   +/-   ##
=======================================
  Coverage        ?   50.90%           
=======================================
  Files           ?      391           
  Lines           ?    32131           
  Branches        ?        0           
=======================================
  Hits            ?    16354           
  Misses          ?    15777           
  Partials        ?        0           
Impacted Files Coverage Δ
moveit_ros/moveit_servo/src/servo_calcs.cpp 67.06% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sjahr sjahr requested a review from AndyZe April 5, 2023 06:44
@AndyZe
Copy link
Copy Markdown
Member

AndyZe commented Apr 5, 2023

My first impression from testing it out in simulation is that the behavior doesn't change noticeably. That's a good sign 👍

Copy link
Copy Markdown
Member

@AndyZe AndyZe left a comment

Choose a reason for hiding this comment

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

Thanks a lot! I'll see if I can get somebody to test it on a real robot.

@ibrahiminfinite
Copy link
Copy Markdown
Contributor Author

Is this still in testing?

@AndyZe
Copy link
Copy Markdown
Member

AndyZe commented Apr 11, 2023

Waiting for a second "maintainer" to review it. It worked well when I tried it.

@sjahr sjahr merged commit d53f785 into moveit:main Apr 13, 2023
@ibrahiminfinite ibrahiminfinite deleted the ibrahim/central_difference branch June 3, 2023 14:16
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.

Use a "central difference" when calculating velocities in Servo

4 participants