Contact me: hankecnc@gmail.com

joints _axes:无法在 Axis GUI 中归位 #23

推推 grbl 3年前 (2023-01-29) 376次浏览
关闭
SebKuzminsky 打开了这个问题 2016 年 1 月 7 日 · 5 条评论
关闭

joints _axes:无法在 Axis GUI 中归位#23

SebKuzminsky 打开了这个问题 2016 年 1 月 7 日 · 5 条评论

注释

joints _axes:无法在 Axis GUI 中归位 #23

自从提交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()))

问题是 vars.ja_rbutton.get() 函数在我选择了关节 0 并处于自由模式时返回“0”,但它试图匹配来自的轴名称(如“X”或“Y”) ini文件。

joints _axes:无法在 Axis GUI 中归位 #23
合作者作者

Jeff 将 ja10 中的匹配提交标识为6171b65

joints _axes:无法在 Axis GUI 中归位 #23
合作者作者

正如#22中所述:Home All works,但由于这个问题,归位单个关节不起作用。

joints _axes:无法在 Axis GUI 中归位 #23
合作者作者

由 Dewey 在7f68abe (joints_axes10) 中修复。