Skip to content

Commit 539654f

Browse files
committed
now handled by Robot class
1 parent 74c96d9 commit 539654f

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

roboticstoolbox/robot/DHRobot.py

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -670,58 +670,6 @@ def isspherical(self):
670670
and L[1].sigma == 0 \
671671
and L[2].sigma == 0
672672

673-
def isprismatic(self):
674-
"""
675-
Identify prismatic joints
676-
677-
:return: a list of bool variables, one per joint, true if
678-
the corresponding joint is prismatic, otherwise false.
679-
:rtype: list of bool
680-
681-
``robot.isprismatic()`` is a bool list identifying the prismatic joints
682-
within the robot
683-
684-
Example:
685-
686-
.. runblock:: pycon
687-
688-
>>> import roboticstoolbox as rtb
689-
>>> puma = rtb.models.DH.Puma560()
690-
>>> puma.isprismatic()
691-
>>> stanford = rtb.models.DH.Stanford()
692-
>>> stanford.isprismatic()
693-
"""
694-
return [link.isprismatic for link in self]
695-
696-
def isrevolute(self):
697-
"""
698-
Identify revolute joints
699-
700-
:return: a list of bool variables, one per joint, true if
701-
the corresponding joint is revolute, otherwise false.
702-
:rtype: list of bool
703-
704-
``robot.isrevolute()`` is a bool list identifying the revolute joints
705-
within the robot
706-
707-
Example:
708-
709-
.. runblock:: pycon
710-
711-
>>> import roboticstoolbox as rtb
712-
>>> puma = rtb.models.DH.Puma560()
713-
>>> puma.isprismatic()
714-
>>> stanford = rtb.models.DH.Stanford()
715-
>>> stanford.isrevolute()
716-
"""
717-
718-
p = []
719-
720-
for i in range(self.n):
721-
p.append(self.links[i].isrevolute)
722-
723-
return p
724-
725673
def dhunique(self):
726674
"""
727675
Print the unique DH parameters

0 commit comments

Comments
 (0)