Fawkes API
Fawkes Development Version
|
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>
42 master_inifin_ = master_inifin;
50 if (vision_thread == 0) {
52 "VisionAspect, but RTTI says it "
61 "continuous mode but thread does not",
67 "cyclic mode but thread does not "
68 "operate in wait-for-wakeup mode.",
76 "VisionAspect detected");
87 if (vision_thread == 0) {
105 if (vision_thread == 0) {
107 "VisionAspect, but RTTI says it "
116 "VisionAspect detected");
VisionThreadMode vision_thread_mode()
Get the vision thread mode of this thread.
virtual void init(Thread *thread)
Initialize thread.
@ OPMODE_CONTINUOUS
operate in continuous mode (default)
Thread cannot be initialized.
VisionAspectIniFin(VisionMasterAspectIniFin *master_inifin)
Constructor.
const char * name() const
Get name of thread.
@ CONTINUOUS
continuous mode
void append(const char *format,...)
Append messages to the message list.
Aspect initializer/finalizer base class.
virtual void finalize(Thread *thread)
Finalize thread.
Fawkes library namespace.
virtual bool prepare_finalize(Thread *thread)
Default finalize preparation.
@ OPMODE_WAITFORWAKEUP
operate in wait-for-wakeup mode
bool can_remove_vision_thread(VisionAspect *thread)
Query if vision thread can be removed.
Thread class encapsulation of pthreads.
OpMode opmode() const
Get operation mode.
void remove_vision_thread(VisionAspect *thread)
Remove a vision thread.
void add_vision_thread(VisionAspect *thread)
Add a vision thread.
Thread cannot be finalized.
Dependency violation exception.
Initializer/finalizer for the VisionMasterAspect.
firevision::VisionMaster * vision_master()
Get vision master.
void init_VisionAspect(firevision::VisionMaster *vision_master)
Set vision master.
Thread aspect to use in FireVision apps.