Skip to content

Jerky motion using MoveIt Servo #3065

Closed

Description

@AleTarsi

I am experiencing a problem related to the acceleration profile generated by MoveIt Servo trajectory planner on my UR5e. I’m trying this example of pose tracking. For a bin-picking scenario.

The documentation specifies that MoveIt Servo can enforce only joint position and velocity limits. However, I am experiencing a rough acceleration profile at the start of the motion as shown in the following picture:

At the starting point, the robot joints make an annoying noise, which I want to avoid. During the deceleration phase this noise is not present and the deceleration profile seems much smoother.

I have seen that the time parametrization in MoveIt2 uses the TOTG algorithm to define the velocity and acceleration profiles, which enforce up to the joint acceleration limit. However, it seems that the acceleration limit is not read in MoveIt Servo. I assume that TOTG is used any time you plan using OMPL and Pilz planner, but I haven’t found this information written somewhere. And I would like to understand if changing to Pilz for instance may be a solution to my problem as it enforce at least the acceleration limit.

I have seen there is the possibility to perform an additional post-processing step and run Ruckig algorithm to enforce also the jerk. From the documentation I have seen that this additional plugin is specified in the ompl_planning.yaml, therefore I believe it can be used only when planning with OMPL. Is this true?

As my goal is to remove this unwanted sound when I move my robot, do you think that implementing a vanilla Pilz planner enforcing the acceleration limits is enough? Do you have examples I can take to do so? I am using ros2 Humble.

Is there the possibility of implementing a minimum jerk time parametrization?

Thanks.

Activity

  1. added
    enhancement
    on Nov 6, 2024
  2. AndyZe commented on Nov 6, 2024

    @AndyZe
    Member

    Your best bet is probably to change this line:

    smoothing_filter_plugin_name: "online_signal_smoothing::ButterworthFilterPlugin"

    To:

    online_signal_smoothing::RuckigFilterPlugin

    Which is not in Humble, only later distros. Sorry. I guess you could make a PR to port that change back to Humble.

  3. AleTarsi commented on Nov 12, 2024

    @AleTarsi
    Author

    Hi @AndyZe! Thank you for your answer. I tested the Pilz planner, which significantly reduces the jerk at the starting point, enforcing at least the acceleration limit. The resulting motion is visibly smoother and the acceleration peaks are limited as shown in the following figures:

    Pilz Planner

    Servo Planner

    The graph shows the end effector position and the velocity and acceleration value computed through the central difference derivative, I will have a look directly at the joint trajectory, but it seems that this solution works well for my use case.

  4. AndyZe commented on Nov 13, 2024

    @AndyZe
    Member

    Happy that you got it working!

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