Skip to content

Commit 27a85bf

Browse files
committed
fixed for tests
1 parent 65598ee commit 27a85bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

roboticstoolbox/robot/DHRobot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def __str__(self):
166166

167167
def qstr(j, link):
168168
j += 1
169-
if link.flip:
169+
if link.isflip:
170170
s = f"-q{j:d}"
171171
else:
172172
s = f" q{j:d}"
@@ -189,7 +189,7 @@ def angle(theta, fmt=None):
189189
else:
190190
return str(theta * deg) + "\u00b0"
191191

192-
has_qlim = any([link._qlim is not None for link in self])
192+
has_qlim = any([link.qlim is not None for link in self])
193193
if has_qlim:
194194
qlim_columns = [
195195
Column("q⁻", headalign="^"),
@@ -265,7 +265,7 @@ def angle(theta, fmt=None):
265265
"base",
266266
base.printline(orient="rpy/xyz", fmt="{:.2g}", file=None),
267267
)
268-
if self._tool is not None:
268+
if tool is not None:
269269
table.row(
270270
"tool",
271271
tool.printline(orient="rpy/xyz", fmt="{:.2g}", file=None),
@@ -828,7 +828,7 @@ def ets(self):
828828

829829
# add the links
830830
for link in self:
831-
ets *= link.ets()
831+
ets *= link.ets
832832

833833
# optionally add the base transform
834834
if tool is not None:

0 commit comments

Comments
 (0)