Skip to content

Add time-optimal trajectory parameterization (continues #809) - #1365

Merged
rhaschke merged 6 commits into
moveit:melodic-develfrom
henningkayser:melodic-devel-pr_totg
Mar 7, 2019
Merged

rhaschke merged 6 commits into
moveit:melodic-develfrom
henningkayser:melodic-devel-pr_totg

Conversation

@henningkayser

@henningkayser henningkayser commented Feb 26, 2019 •

Copy link
Copy Markdown
Member

This is an effort to finish PR #809 by @mikeferguson for integrating the time-optimal trajectory parameterization method (published here).

The branch is retargeted to melodic and I implemented a function for computing acceleration values (the original version doesn't do this).

Left TODOs:

  • process pending review by @davetcoleman
  • extend API to support tolerance and resample parameters
  • debug edge cases mentioned in the original comments section

- Sponsored by Acutronic and PickNik -

Time-optimal Trajectory Parameterization

totg

Iterative Spline Parameterization

isp

Iterative Parabolic Time Parameterization

iptp

@davetcoleman

Copy link
Copy Markdown
Member

Thanks @henningkayser !

extend API to support tolerance and resample parameters

Is this feature necessary for this first PR? I'd rather just get the very stale PR merged so it gets into moveit2, even if its not feature complete. We don't want huge PRs.

@mikeferguson

Copy link
Copy Markdown
Contributor

@henningkayser thanks for picking this up and getting it across the line!

@mikeferguson

Copy link
Copy Markdown
Contributor

I'd also make one recommendation to maintainers -- don't squash this before merging, so that somebody can still figure out the changes we made from the original codebase (in case somebody wants to later import patches or whatnot).

@henningkayser henningkayser changed the title WIP: Add time-optimal trajectory parameterization (continues #809) Add time-optimal trajectory parameterization (continues #809) Feb 27, 2019
@henningkayser

henningkayser commented Feb 27, 2019 •

Copy link
Copy Markdown
Member Author

@davetcoleman I addressed your requested changes from #809. However, I would suggest we don't separate the classes into different files. Since we don't have any other code depending on it, separate files would just make the package more complicated without any real upside.

I also added some improvements to the implementation:

  • The timestamp of the first waypoint is set to 0 (instead of a certain dt before)
  • The last waypoint is always sampled from the last point in the processed path, fixing occasional non-zero end velocities
  • trajectories that only contain the same waypoints are handled (fixes issue with planning to the current state)
  • computeTimeStamps is now a member function of a 'TimeOptimalTrajectoryGeneration' class that allows setting tolerance and sampling parameters in the constructor

@hartmanndennis can you confirm that the issues you described are fixed?

I'd also make one recommendation to maintainers -- don't squash this before merging, so that somebody can still figure out the changes we made from the original codebase (in case somebody wants to later import patches or whatnot).

I agree with @mikeferguson but I should probably squash my commits before merging.

@davetcoleman

Copy link
Copy Markdown
Member

However, I would suggest we don't separate the classes into different files.

No problem

@davetcoleman davetcoleman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think its about there!

@davetcoleman

Copy link
Copy Markdown
Member

@henningkayser can you squash some of your commits together, but not the original author's commit per @mikeferguson ?

@henningkayser henningkayser removed the awaits 2nd review one maintainer approved this request label Mar 6, 2019
@henningkayser
henningkayser force-pushed the melodic-devel-pr_totg branch from 27f7efd to ce9b36e Compare March 6, 2019 17:06
@henningkayser
henningkayser force-pushed the melodic-devel-pr_totg branch from ce9b36e to 7653af0 Compare March 6, 2019 17:16
@henningkayser

Copy link
Copy Markdown
Member Author

@henningkayser can you squash some of your commits together, but not the original author's commit per @mikeferguson ?

Done

@hartmanndennis

Copy link
Copy Markdown
Contributor

@hartmanndennis can you confirm that the issues you described are fixed?

Both issues seem to be fixed. Great Work!

@rhaschke
rhaschke merged commit 3d32f9a into moveit:melodic-devel Mar 7, 2019
@davetcoleman

Copy link
Copy Markdown
Member

Whoo hoo! @henningkayser I think it would be worth announcing this new feature on Discourse, giving credit also to @mikeferguson and original author Tobias Kuntz. Could you do that, including a pointer to the new tutorial?

@mikeferguson

Copy link
Copy Markdown
Contributor

Thanks for getting this across the line (and creating plots to show just how much better this algorithm is).

@hartmanndennis

Copy link
Copy Markdown
Contributor

Will this be cherry-picked to kinetic?

@rhaschke

rhaschke commented Mar 8, 2019

Copy link
Copy Markdown
Contributor

Will this be cherry-picked to kinetic?

I would say no. Maintaining both branches is a lot of work, and a subset of maintainers is now focussing on MoveIt for ROS2 already. You can compile MoveIt Melodic on Kinetic, if you like to have those changes in Kinetic.

@gavanderhoorn

Copy link
Copy Markdown
Member

@hartmanndennis: please also note that as nice as it is, TOTG is not jerk-limited, so if you plan on using it with KUKA robots over RSI, I don't expect it -- but I would really like to -- solve all issues there.

@henningkayser
henningkayser deleted the melodic-devel-pr_totg branch March 8, 2019 16:07
@davetcoleman

Copy link
Copy Markdown
Member

+1 to compiling the master branch with your ROS Kinetic environment - its compatible!

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.

6 participants