Changes to trajectory functions #176
petercorke
started this conversation in
Changes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Old behaviour
Trajectory functions used to return a named tuple with time, position, velocity and acceleration, eg.
with elements
x
,y
,yd
,ydd
, which could be plotted witht1plot
.While
had elements
t
,q
,qd
,qdd
, and you could plot the element usingqplot(tg.q)
.New behaviour
All trajectory functions return a
Trajectory
class which holds the element like the named tuple did. But:x
,y
,yd
,ydd
t1plot
has gone,qplot
remains, but the example above would now beqplot(tg.y)
Beta Was this translation helpful? Give feedback.
All reactions