Skip to content

Commit d7f8ef4

Browse files
committed
add plot and teach to ETS
1 parent 54dab45 commit d7f8ef4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

roboticstoolbox/robot/ETS.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,25 @@ def inv(self):
929929
inv *= et
930930
return inv
931931

932+
def plot(self, *args, **kwargs):
933+
from roboticstoolbox.robot.ERobot import ERobot, ERobot2
934+
935+
if isinstance(self, ETS):
936+
robot = ERobot(self)
937+
else:
938+
robot = ERobot2(self)
939+
940+
robot.plot(*args, **kwargs)
941+
942+
def teach(self, *args, **kwargs):
943+
from roboticstoolbox.robot.ERobot import ERobot, ERobot2
944+
945+
if isinstance(self, ETS):
946+
robot = ERobot(self)
947+
else:
948+
robot = ERobot2(self)
949+
950+
robot.teach(*args, **kwargs)
932951

933952
class ETS(BaseETS):
934953
"""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy