Skip to content

Improve time parameterization #160

Closed

Description

@mikeferguson

Using this to collect numerous tickets that I am closing on other repos -- this has been a common request as there are currently numerous ways to get glitches, and the current system does not respect acceleration limits

Activity

  1. added
    help wanted
    on Aug 25, 2016
  2. davetcoleman commented on Aug 26, 2016

    @davetcoleman
    Member
  3. rbbg commented on Sep 6, 2016

    @rbbg
    Contributor

    I agree that this would be a welcome improvement and would like to help out.

    I was wondering about the performance of the TOPP library (If I read the paper right it states 14ms for a 7dof 1000waypoint trajectory) so I forked dave's moveit_topp repo (rbbg/moveit_topp) and created a planning_request_adapter so it can be easily used from within MoveIt!. Unfortunately it is not quite working and complains about some CLC discontinuity. @davetcoleman you probably have a little better understanding of TOPP, would you mind taking a look?

    It won't be a one-size-fits-all solution to the time parameterization problem, but perhaps it can serve as a viable alternative to the current approach in some scenarios.

  4. rbbg commented on Sep 6, 2016

    @rbbg
    Contributor

    Fixed the problem I mentioned earlier: the acceleration limits defaulted to 0.0 when they were not set in the kinematic config. I haven't done any extensive testing but TOPP usually takes <200ms on a 7dof manipulator, but I've seen it take as long as 600ms. The trajectories look pretty good but to get a better idea it will be nice to take a closer look at the accelerations that both iptp and topp will generate for an identical path. I'll probably be able to test that somewhere in the next few days.

  5. v4hn commented on Sep 7, 2016

    @v4hn
    Contributor
  6. rbbg commented on Sep 7, 2016

    @rbbg
    Contributor

    I have made a small test script to store and compare identical trajectories using the different parameterization methods. The next two figures demonstrate the difference between IPTP and TOPP, I think you can guess which is which :) The acceleration limit is unspecified and thus set to 1.0, so they seem to get violated by both methods, but IPTP is worse.

    Note that the duration of the TOPP path is also a little shorter, usually shaves off a couple of % if I had to guess, it's not a huge difference.

    iptp

    topp

    This is just one example; sometimes the difference is smaller, sometimes bigger, but from what I've seen so far, the TOPP path consistently has fewer acceleration spikes. Total parameterization time seems to average around about 200ms for most of the things I throw at it, but perhaps that can be improved as well.

  7. gavanderhoorn commented on Sep 8, 2016

    @gavanderhoorn
    Member

    A bit of a 'me too +1' post, but I must say that subjectively, I like the TOPP vel & accel profiles a lot better than those out of IPTP. It also looks like the position curve is 'much' smoother, which would seem to suggest a nicer motion (although we only see a single joint here).

  8. avoelz commented on Sep 13, 2016

    @avoelz

    As a side note, the algorithm described in "Time-Optimal Trajectory Generation for Path
    Following with Bounded Acceleration and Velocity" by Tobias Kunz and Mike Stilman is available as C++ code at https://github.com/tobiaskunz/trajectories. It has no dependencies except Eigen and is thus very easy to integrate. I used it as alternative to IPTP and was very content with computation time and resulting trajectories.

  9. v4hn commented on Sep 13, 2016

    @v4hn
    Contributor

    On Tue, Sep 13, 2016 at 03:30:54AM -0700, avoelz wrote:

    It has no dependencies except Eigen and is thus very easy to integrate.
    I used it as alternative to IPTP and was very content with computation time and resulting trajectories.

    This looks pretty good to. Do you have code around for the integration of this in MoveIt?
    As this is BSD-2 clause license, we could definitely integrate this with MoveIt.
    Could we integrate these algorithms as PlanningRequestAdapters?

  10. davetcoleman commented on Sep 13, 2016

    @davetcoleman
    Member

    +1 to using Tobias' work, I've talked to him about it and it sounds very promising

  11. mikeferguson commented on Sep 13, 2016

    @mikeferguson
    ContributorAuthor

    We actually have a moveit-wrapped version of tobias work that we use in-house as a planning request adapter (with tests even). Let me see if we can release that.

  12. mikeferguson commented on Sep 16, 2016

    @mikeferguson
    ContributorAuthor

    Ok -- I've got a thumbs up on releasing -- what folder would this go into? I'm thinking "moveit_ros/planning/parabolic_trajectory_adapter", any issues with that? (I know the other time parameterization is in planning_request_adapters, but there is actually quite a bit of code/tests for this new adapter compared to the old one, not sure we actually would want to mix it into that...)

  13. gavanderhoorn commented on Sep 16, 2016

    @gavanderhoorn
    Member

    Do you have any plots available? I'd be interested to see the difference with IPTP.

  14. davetcoleman commented on Sep 16, 2016

    @davetcoleman
    Member

    Actually, the best place for it would be next to our current time parameterization implementation in moveit_core/trajectory_processing/ but I presume your implementations have more ROS dependencies than moveit_core allows?

    Great news about the open sourcing of your work, btw!!

  15. 29 remaining items

  16. davetcoleman commented on Mar 22, 2017

    @davetcoleman
    Member

    Yes that's a hard question to answer from memory - I have not read those papers in many months (maybe a year)...

  17. mmoerdijk commented on Nov 6, 2017

    @mmoerdijk

    This maybe a dumb question, but doesn't every cnc have the same problem of moving multiple axis simultaneously?

    Why can't we use solutions from the cnc world?

  18. davetcoleman commented on Nov 7, 2017

    @davetcoleman
    Member

    I think there is potential and I attempted to read into their literature once. However the CNC world has a much lower number of DOF so that might affect some of the assumptions they have made.

  19. v4hn commented on Nov 17, 2017

    @v4hn
    Contributor

    @mmoerdijk in other words: feel free to look around and contribute!
    Just because there are long threads of discussion, that doesn't mean it's too complex if you know where to look...

  20. mikeferguson commented on Mar 26, 2018

    @mikeferguson
    ContributorAuthor

    I realize we've already got TOPP in Kinetic,but I'm working on TOTG right now, so I'm going to assign this to myself, since I think I've only mentioned I'm working on this to @davetcoleman.

    The current TOTG branch I have is targeting Indigo, but a port to Kinetic will be easy. That branch is here: https://github.com/mikeferguson/moveit/tree/totg.

    I've tested quite a bit today, but I have found an issue in that the pick and place pipeline lacks the joint velocity/acceleration limits -- so the plans that come out are stupidly slow. Once I've tracked down what is going on there, I just need to clang the code and update the logging calls (since I think they are now out of date). Hoping to figure out the pick/place problem tomorrow.

  21. self-assigned this
    on Mar 26, 2018
  22. lakshmip001 commented on Aug 14, 2018

    @lakshmip001

    @aiolosxuk I implemented moveit_topp on my moveit trajectory as I need trapezoidal tool velocity.I dont know how I can get trapezoidal tool velocity when I constrain joint acceleration and joint velocity using moveit_topp. Is the trapezoidal velocity resulting in tool velocity of manipulator also?

  23. sabaghian commented on Aug 29, 2018

    @sabaghian

    In Iterative cubic spline time parameterization (iterative_spline_parameterization.cpp ), in function global_adjustment_factor(), the velocities are only checked at boundaries. Since the velocity is a second order polynomial, it can have another maximum value which can easily be checked too.

  24. itfanr commented on Mar 28, 2019

    @itfanr

    @rbbg Thank you for your implemention of TOPP. I will try it on my robot.

  25. mikeferguson commented on Mar 29, 2019

    @mikeferguson
    ContributorAuthor

    I think we can actually close this now that we have several methods ported in (the most recent one in #1365)

  26. itfanr commented on Mar 29, 2019

    @itfanr

    @mikeferguson I will read the issue #1365

  27. Kazfyx commented on Jan 22, 2021

    @Kazfyx

    Is there any publication that describes the algorithm of IPTP? I need to cite it.

  28. s265452 commented on Feb 15, 2022

    @s265452

    Is there any publication that describes the algorithm of IPTP? I need to cite it.

    I read this one. I don't know if it's the correct one. I think so.

    ParabolicBlends.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions