自从提交f2551bb(“joints_axes9:joint jogging and axis gui updates”)以来,我无法将我的非 trivkins 机器人手臂的关节归位。我通过用鼠标单击它来选择我想要归位的关节,然后按下键盘上的 Home 按钮,Axis 打印如下:
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1437, in __call__
return self.func(*args)
File "/home/seb/linuxcnc-dev/bin/axis", line 2471, in home_joint
if s.homed[trajcoordinates.index(vars.ja_rbutton.get())]:
ValueError: substring not found
有问题的代码是 home_joint 函数:
def home_joint(event=None):
if not manual_ok(): return
doHoming=True
if s.homed[trajcoordinates.index(vars.ja_rbutton.get())]:
doHoming=prompt_areyousure(_("Warning"),_("This joint is already homed, are you sure you want to re-home?"))
if doHoming:
ensure_mode(linuxcnc.MODE_MANUAL)
go_home(trajcoordinates.index(vars.ja_rbutton.get()))
自从提交f2551bb(“joints_axes9:joint jogging and axis gui updates”)以来,我无法将我的非 trivkins 机器人手臂的关节归位。我通过用鼠标单击它来选择我想要归位的关节,然后按下键盘上的 Home 按钮,Axis 打印如下:
有问题的代码是 home_joint 函数:
问题是 vars.ja_rbutton.get() 函数在我选择了关节 0 并处于自由模式时返回“0”,但它试图匹配来自的轴名称(如“X”或“Y”) ini文件。