LinuxCNC:如何使用 Python 查找当前位置
这将显示机器坐标系中的位置,例如
get_position.py
#!/usr/bin/env python2.7
import linuxcnc
stat = linuxcnc.stat()
stat.poll()
print(stat.actual_position)示例输出:
position_output.txt
(7.4023762662053105, 26.443582149595567, 297.289833343029, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow