← 返回首页
Allow higher order spline derivatives. by myeatman-bdai · Pull Request #176 · rai-opensource/spatialmath-python · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Allow higher order spline derivatives.#176

Open
myeatman-bdai wants to merge 2 commits into
masterfrom
spline-derivatives
Open

Allow higher order spline derivatives.#176
myeatman-bdai wants to merge 2 commits into
masterfrom
spline-derivatives

Conversation

Copy link
Copy Markdown
Collaborator

Calculate higher order spline derivatives for the InterpSplineSE3 class.

bokorn-bdaii left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Looks good. Can you add the derivative computation to the unit tests and add a docstring to the derivative function.

Comment thread spatialmath/spline.py
linear_vel = self.spline_xyz.derivative()(t)
angular_vel = self.spline_so3(
t, 1
def derivative(self, t: float, order: int = 1) -> Twist3:

bokorn-bdaii Nov 20, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Add some warning that this only works for order = [1,2]. Current system throws a value error for order != [0,1,2] but will fail on order 0 with a "ValueError: bad value to Twist constructor" error. We should check and throw errors for order != [1,2].

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Thanks for testing that

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Footer

© 2026 GitHub, Inc.