@@ -661,9 +661,9 @@ whole robots, discrete links, and objects in the world. For example a :math:`1
661
661
just one link, of the robot by::
662
662
663
663
>>> 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)
667
667
668
668
669
669
Additionally, we can compute the minimum Euclidean distance between whole
@@ -777,4 +777,4 @@ References
777
777
.. [SMTB-P ] `Spatial Math Toolbox for Python <https://github.com/petercorke/spatialmath-python >`_
778
778
.. [bdsim ] `Block diagram simulator for Python <https://github.com/petercorke/bdsim >`_
779
779
.. [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