Skip to content

Conversation

@SchwartzCode
Copy link
Contributor

What does this implement/fix?

Implements Dynamic Movement Primitives, which is a way of 'learning' a path and being able to stretch or squeeze it in space or time as the user sees fit. The path is learned as a weighted sums of gaussian distributions.

Additional information

I made a file and a few unit tests, but let me know if there is anything else you'd like me to add to this!

SchwartzCode and others added 24 commits June 29, 2021 11:19
…tion - relative to the points before and after it- when change in x or change in y along path is 0
Copy link
Contributor Author

@SchwartzCode SchwartzCode left a comment

Choose a reason for hiding this comment

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

Looks good to me (but I also wrote this lol so of course it looks good to me). Only thing I didn't add was an entry to the table of contents in the README, but I figured I'd wait on that to see if this PR is approved :)

@SchwartzCode
Copy link
Contributor Author

Also, all commits before #d5b4361 were merged in with the two length=0 fixes I pushed for dubins planner and reeds shepp planners last week, not really sure why they are showing in this PR too

@AtsushiSakai
Copy link
Owner

Thank you for your PR again. Is it possible to add an arm navigation simulation using this technique?

@SchwartzCode
Copy link
Contributor Author

I think so, do you want me to add those changes to this PR or should I close and re-make it once I've finished adding things?

@AtsushiSakai
Copy link
Owner

It is ok to add it in this PR.

@lgtm-com
Copy link

lgtm-com bot commented Oct 8, 2021

This pull request introduces 4 alerts when merging 4d92252 into ee729d6 - view on LGTM.com

new alerts:

  • 3 for Unused import
  • 1 for Variable defined multiple times
@AtsushiSakai
Copy link
Owner

@SchwartzCode Thank you for your hard work. I like the animation and the figure, please fix all CI failures and add tests, then I will review it and merge it.

@lgtm-com
Copy link

lgtm-com bot commented Oct 25, 2021

This pull request introduces 4 alerts when merging ae50183 into 90c6cfa - view on LGTM.com

new alerts:

  • 3 for Unused import
  • 1 for Variable defined multiple times
@lgtm-com
Copy link

lgtm-com bot commented Oct 25, 2021

This pull request introduces 4 alerts when merging 9fefe20 into 90c6cfa - view on LGTM.com

new alerts:

  • 3 for Unused import
  • 1 for Variable defined multiple times
@lgtm-com
Copy link

lgtm-com bot commented Oct 25, 2021

This pull request introduces 4 alerts when merging 342dc25 into 90c6cfa - view on LGTM.com

new alerts:

  • 3 for Unused import
  • 1 for Variable defined multiple times
@SchwartzCode
Copy link
Contributor Author

@AtsushiSakai passing everything except CodeFactor, which is mad about some for loops in ArmNavigation\n_joint_arm_3d\NLinkArm3d.py, let me know if there's any other changes to this you'd like!

Copy link
Owner

@AtsushiSakai AtsushiSakai left a comment

Choose a reason for hiding this comment

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

Thank you for your work. I have some comments. PTAL.

@@ -0,0 +1,260 @@
"""
Copy link
Owner

Choose a reason for hiding this comment

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

Please add a one-line comment to describe this example here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added one to the example_DMP() function toward the bottom of the file

Copy link
Owner

Choose a reason for hiding this comment

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

Can you add a one-line comment to describe this file here? Like: "Dynamic Movement Primitives examples for robotics".

@lgtm-com
Copy link

lgtm-com bot commented Nov 3, 2021

This pull request introduces 1 alert when merging 342eb03 into 187b6aa - view on LGTM.com

new alerts:

  • 1 for Unused local variable
@SchwartzCode
Copy link
Contributor Author

@AtsushiSakai addressed most of your comments (resolved ones where I just did what was suggested, left ones open that I maybe didn't do exactly what was asked), let me know if there are more changes you'd like to see :)

Copy link
Owner

@AtsushiSakai AtsushiSakai left a comment

Choose a reason for hiding this comment

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

Thank you. This is the last review. After, addressed these, I will merge it.

@@ -0,0 +1,260 @@
"""
Copy link
Owner

Choose a reason for hiding this comment

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

Can you add a one-line comment to describe this file here? Like: "Dynamic Movement Primitives examples for robotics".

@SchwartzCode
Copy link
Contributor Author

@AtsushiSakai made the changes you requested, thanks for making this repo! It helped me a ton this summer while prototyping path planners :)

Copy link
Owner

@AtsushiSakai AtsushiSakai left a comment

Choose a reason for hiding this comment

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

LGTM. I will merge it. Thank you for your work!! @SchwartzCode

@AtsushiSakai AtsushiSakai merged commit 0df55e9 into AtsushiSakai:master Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants