24 #include <aspect/inifins/vision.h> 25 #include <aspect/inifins/vision_master.h> 26 #include <aspect/vision.h> 27 #include <core/threading/thread_finalizer.h> 45 __master_inifin = master_inifin;
54 if (vision_thread == 0) {
56 "VisionAspect, but RTTI says it " 57 "has not. ", thread->
name());
64 "continuous mode but thread does not",
70 "cyclic mode but thread does not " 71 "operate in wait-for-wakeup mode.",
79 "VisionAspect detected");
92 if (vision_thread == 0) {
110 if (vision_thread == 0) {
112 "VisionAspect, but RTTI says it " 113 "has not. ", thread->
name());
120 "VisionAspect detected");
virtual bool prepare_finalize(Thread *thread)
Default finalize preparation.
Fawkes library namespace.
void remove_vision_thread(VisionAspect *thread)
Remove a vision thread.
Thread class encapsulation of pthreads.
bool can_remove_vision_thread(VisionAspect *thread)
Query if vision thread can be removed.
OpMode opmode() const
Get operation mode.
firevision::VisionMaster * vision_master()
Get vision master.
Thread cannot be initialized.
Dependency violation exception.
void init_VisionAspect(firevision::VisionMaster *vision_master)
Set vision master.
Thread aspect to use in FireVision apps.
VisionThreadMode vision_thread_mode()
Get the vision thread mode of this thread.
void add_vision_thread(VisionAspect *thread)
Add a vision thread.
operate in continuous mode (default)
const char * name() const
Get name of thread.
virtual void init(Thread *thread)
Initialize thread.
VisionAspectIniFin(VisionMasterAspectIniFin *master_inifin)
Constructor.
Thread cannot be finalized.
operate in wait-for-wakeup mode
void append(const char *format,...)
Append messages to the message list.
virtual void finalize(Thread *thread)
Finalize thread.
Initializer/finalizer for the VisionMasterAspect.
Aspect initializer/finalizer base class.