Skip to content

Commit

Permalink
Added keywords to arguments for new message instance of JointTrajecto…
Browse files Browse the repository at this point in the history
…ryPoint().

Arguments were previously "in order" but the keyword arguments are recommended as they are more resilient to msg changes.
  • Loading branch information
Christina Gomez committed Nov 11, 2013
1 parent da197d1 commit 300e395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ur_driver/src/ur_driver/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def interp_cubic(p0, p1, t_abs):
q[i] = a + b*t + c*t**2 + d*t**3
qdot[i] = b + 2*c*t + 3*d*t**2
qddot[i] = 2*c + 6*d*t
return JointTrajectoryPoint(q, qdot, qddot, rospy.Duration(t_abs))
return JointTrajectoryPoint(positions=q, velocities=qdot, accelerations=qddot, time_from_start=rospy.Duration(t_abs))

# Returns (q, qdot, qddot) for sampling the JointTrajectory at time t.
# The time t is the time since the trajectory was started.
Expand Down

0 comments on commit 300e395

Please sign in to comment.