Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Changes to trajectory functions#176

petercorke started this conversation inChanges
Discussion options

Old behaviour

Trajectory functions used to return a named tuple with time, position, velocity and acceleration, eg.

tg = tpoly1(0, 1, 20)

with elementsx,y,yd,ydd, which could be plotted witht1plot.

While

tg = jtraj(q0, qf, 20)

had elementst,q,qd,qdd, and you could plot the element usingqplot(tg.q).

New behaviour

All trajectory functions return aTrajectory class which holds the element like the named tuple did. But:

  • the elements are always calledx,y,yd,ydd
  • it has a plot method which will plot position, velocity and acceleration

t1plot has gone,qplot remains, but the example above would now beqplot(tg.y)

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
1 participant
@petercorke

[8]ページ先頭

©2009-2025 Movatter.jp