Skip to content

Commit 3cefa21

Browse files
committed
add autorun example
1 parent 0ce1bc0 commit 3cefa21

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

roboticstoolbox/robot/DHDynamics.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,14 @@ def accel(self, q, qd, torque):
381381
382382
:math:`\ddot{q} = \mathbf{I}^{-1} \left(\tau - \mathbf{C}(q)\dot{q} - \mathbf{g}(q)\right)`
383383
384+
Example:
385+
386+
.. runblock:: pycon
387+
388+
>>> import roboticstoolbox as rtb
389+
>>> puma = rtb.models.DH.Puma560()
390+
>>> puma.accel(puma.qz, 0.5 * np.ones(6), np.zeros(6))
391+
384392
**Trajectory operation**
385393
386394
If `q`, `qd`, torque are matrices (m,n) then ``qdd`` is a matrix (m,n)

0 commit comments

Comments
 (0)