Skip to content

Automatically choose the number of waypoints passed to Ruckig at once #1439

Closed

Description

@AndyZe

The Ruckig trajectory smoother currently stretches the entire trajectory in time until all kinematic limits are obeyed. This works but it can slow the trajectory more than necessary. It's better to feed in just a few waypoints at once so only the waypoints needing it get stretched.

The downside of passing just a few waypoints at once is very long runtimes if the trajectory is very large. So, I think the number of waypoints passed to Ruckig should be chosen in a smarter way.

Attached is some code to feed in a configurable number of waypoints.

process_waypoints_in_chunks.txt

A good way to select the number of waypoints is probably:

  • The smaller of (100 waypoints, 10% of waypoints)

Activity

  1. added
    enhancement
    on Jul 20, 2022
  2. changed the title [-]Configure the number of waypoints passed to Ruckig at once[/-] [+]Automatically choose the number of waypoints passed to Ruckig at once[/+] on Aug 4, 2022
  3. swiz23 commented on Jan 6, 2023

    @swiz23
    Contributor

    Hi @AndyZe,

    Decided to test out the PR for adjustable waypoint batch sizes yesterday. Saw something interesting. Refer to the table below and the attached 2 CSV files showing all waypoints. You'll notice that when ruckig is run in batches, it can lengthen the trajectory an unexpected amount. It's unclear to me why. Any ideas? Note that I left the default arguments in runRuckigInBatches. Also note that both of these motions were Cartesian based. However, I've planned other cartesian based moves where this weird issue did not happen.

    Screenshot from 2023-01-06 13-48-33

    Motion_1.txt

    Motion_2.txt

    @mechwiz, @nbbrooks, @JafarAbdi for better visibility.

  4. AndyZe commented on Feb 19, 2023

    @AndyZe
    MemberAuthor

    @swiz23 thanks for testing. I'll likely be looking into this soon. I'll open a new issue for this.

    Closing this issue b/c it was completed by #1719

  5. AndyZe commented on Feb 19, 2023

    @AndyZe
    MemberAuthor

    New issue to track the bug noticed by @swiz23: #1960

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions