Skip to content

Commit 5506dca

Browse files
committed
Init c capsule with default qlim fix petercorke#353
1 parent 8b133eb commit 5506dca

File tree

1 file changed

+8
-2
lines changed
  • roboticstoolbox/robot

1 file changed

+8
-2
lines changed

roboticstoolbox/robot/ET.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ def __init_c(self):
107107
jindex = self.jindex
108108

109109
if self.qlim is None:
110-
qlim = array([0, 0])
110+
if self.axis[0] == "R":
111+
qlim = array([-pi, pi])
112+
else:
113+
qlim = array([0, 1])
111114
else:
112115
qlim = self.qlim
113116

@@ -131,7 +134,10 @@ def __update_c(self):
131134
jindex = self.jindex
132135

133136
if self.qlim is None:
134-
qlim = array([0, 0])
137+
if self.axis[0] == "R":
138+
qlim = array([-pi, pi])
139+
else:
140+
qlim = array([0, 1])
135141
else:
136142
qlim = self.qlim
137143

0 commit comments

Comments
 (0)