سؤال

How do I create a thread that continuously checks for obstacles using the ultrasonic class in nxt-python 2.2.2? I want to implement it in a way that while my robot is moving it also detects obstacles in a background process and once it detects an object it will brake and do something else

هل كانت مفيدة؟

المحلول

You used the daemon thread instead of normal thread. because this is different to normal thread. I hope so daemon thread resolve your problem.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top