Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 nxt-python 2.2.2 中的超声波类创建一个连续检查障碍物的线程?我想以一种方式实现它,当我的机器人移动时,它也会在后台进程中检测到障碍物,一旦它检测到一个物体,它就会刹车并做其他事情
您使用了守护线程而不是普通线程。因为这与普通线程不同。我希望守护线程可以解决您的问题。