-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add more information about acceleration/velocity parametrization in trajectory examples #251
Conversation
…rajectory examples The examples were mainly using either time parametrization or implicit acc/vel parametrization using the default values. This adds more explicit acc/vel parametrized motions to the examples with some explaining comments.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #251 +/- ##
==========================================
+ Coverage 71.71% 73.20% +1.49%
==========================================
Files 71 75 +4
Lines 2786 2889 +103
Branches 353 360 +7
==========================================
+ Hits 1998 2115 +117
+ Misses 596 587 -9
+ Partials 192 187 -5 ☔ View full report in Codecov by Sentry. |
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.
See my comments as optional, though it took me a minut to understand why points.size() * 2
for (size_t i = 0; i < points.size(); i++) | ||
{ | ||
// setting the cartesian parameter makes it interpret the 6d vector as a pose and use movel | ||
g_my_driver->writeTrajectoryPoint(points[i], true, motion_durations[i], blend_radii[i]); | ||
} | ||
|
||
// Same motion, but parametrized with acceleration and velocity | ||
motion_durations = { 0.0, 0.0 }; |
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.
Maybe we should have some different "writeTrajecotryPoint() function. Like one without the duration, as it is optional to define it. When we do not need to have a zero vector here
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.
We might have to sit down and think about an API 2.0 at some point.
Co-authored-by: Rune Søe-Knudsen <41109954+urrsk@users.noreply.github.com>
The examples were mainly using either time parametrization or implicit acc/vel parametrization using the default values.
This adds more explicit acc/vel parametrized motions to the examples with some explaining comments.