Skip to content

Commit 8b133eb

Browse files
committed
Add print method for empty ETS
1 parent 452fc6f commit 8b133eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

roboticstoolbox/robot/ETS.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ def __str__(self, q: Union[str, None] = None):
126126
s = None
127127
unicode = rtb_get_param("unicode")
128128

129+
# An empty SE3
130+
if len(self.data) == 0:
131+
return "SE3()"
132+
129133
if q is None:
130134
if len(self.joints()) > 1:
131135
q = "q{0}"

0 commit comments

Comments
 (0)