You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
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.
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.
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.
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).
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.
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?
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.
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...)
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!!
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.
@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...
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.
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.
Reacted by Adolfo Rodriguez Tsouroukdissian, Dave Coleman, Dennis Hartmann, Rhys McKercher and skaruparthi
@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?
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.
Activity
davetcoleman commentedon Aug 26, 2016
+1 this is a much needed enhancement in moveit. @adolfo-rt wrote up a great synopsis at https://github.com/ros-planning/moveit_core/issues/167
rbbg commentedon Sep 6, 2016
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.
rbbg commentedon Sep 6, 2016
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.
v4hn commentedon Sep 7, 2016
rbbg commentedon Sep 7, 2016
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.
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.
gavanderhoorn commentedon Sep 8, 2016
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).
avoelz commentedon Sep 13, 2016
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.
v4hn commentedon Sep 13, 2016
On Tue, Sep 13, 2016 at 03:30:54AM -0700, avoelz wrote:
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?davetcoleman commentedon Sep 13, 2016
+1 to using Tobias' work, I've talked to him about it and it sounds very promising
mikeferguson commentedon Sep 13, 2016
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.
mikeferguson commentedon Sep 16, 2016
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...)
gavanderhoorn commentedon Sep 16, 2016
Do you have any plots available? I'd be interested to see the difference with IPTP.
davetcoleman commentedon Sep 16, 2016
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!!
29 remaining items
davetcoleman commentedon Mar 22, 2017
Yes that's a hard question to answer from memory - I have not read those papers in many months (maybe a year)...
mmoerdijk commentedon Nov 6, 2017
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?
davetcoleman commentedon Nov 7, 2017
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.
v4hn commentedon Nov 17, 2017
@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...
mikeferguson commentedon Mar 26, 2018
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.
lakshmip001 commentedon Aug 14, 2018
@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?
sabaghian commentedon Aug 29, 2018
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.
itfanr commentedon Mar 28, 2019
@rbbg Thank you for your implemention of TOPP. I will try it on my robot.
mikeferguson commentedon Mar 29, 2019
I think we can actually close this now that we have several methods ported in (the most recent one in #1365)
itfanr commentedon Mar 29, 2019
@mikeferguson I will read the issue #1365
Kazfyx commentedon Jan 22, 2021
Is there any publication that describes the algorithm of IPTP? I need to cite it.
s265452 commentedon Feb 15, 2022
I read this one. I don't know if it's the correct one. I think so.
ParabolicBlends.pdf
Port moveit ros visualization to ROS 2 (moveit#160)