Skip to content

Commit 2a8111b

Browse files
authored
updated collision checking example (#382)
1 parent c718251 commit 2a8111b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/intro.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -661,9 +661,9 @@ whole robots, discrete links, and objects in the world. For example a :math:`1
661661
just one link, of the robot by::
662662

663663
>>> panda = rtb.models.Panda()
664-
>>> obstacle = rtb.Box([1, 1, 1], SE3(1, 0, 0))
665-
>>> iscollision = panda.collided(obstacle) # boolean
666-
>>> iscollision = panda.links[0].collided(obstacle)
664+
>>> obstacle = Cuboid([1, 1, 1], pose = SE3(1, 0, 0))
665+
>>> iscollision = panda.iscollided(panda.q, obstacle) # boolean
666+
>>> iscollision = panda.links[0].iscollided(obstacle)
667667

668668

669669
Additionally, we can compute the minimum Euclidean distance between whole
@@ -777,4 +777,4 @@ References
777777
.. [SMTB-P] `Spatial Math Toolbox for Python <https://github.com/petercorke/spatialmath-python>`_
778778
.. [bdsim] `Block diagram simulator for Python <https://github.com/petercorke/bdsim>`_
779779
.. [neo] `NEO: A Novel Expeditious Optimisation Algorithm for Reactive Motion Control of Manipulatorshttps://jhavl.github.io/neo>`_
780-
.. [corke21a] P. Corke and J. Haviland, "Not your grandmother’s toolbox – the Robotics Toolbox reinvented for Python", Proc. ICRA 2021.
780+
.. [corke21a] P. Corke and J. Haviland, "Not your grandmother’s toolbox – the Robotics Toolbox reinvented for Python", Proc. ICRA 2021.

0 commit comments

Comments
 (0)