23#ifndef _FIREVISION_APPS_BASE_BASE_THREAD_H_
24#define _FIREVISION_APPS_BASE_BASE_THREAD_H_
26#include <aspect/blocked_timing.h>
27#include <aspect/clock.h>
28#include <aspect/configurable.h>
29#include <aspect/logging.h>
30#include <aspect/thread_producer.h>
31#include <aspect/vision_master.h>
32#include <core/threading/thread.h>
33#include <core/threading/thread_notification_listener.h>
34#include <core/utils/lock_list.h>
35#include <core/utils/lock_map.h>
36#include <fvutils/base/vision_master.h>
68 firevision::colorspace_t cspace = firevision::YUV422_PLANAR);
89 const std::type_info &typeinf);
92 void cond_recreate_barrier(
unsigned int num_cyclic_threads);
98 unsigned int aqt_timeout_;
FireVision base application acquisition thread.
virtual void release_camctrl(firevision::CameraControl *cc)
Release a camera control.
virtual ~FvBaseThread()
Destructor.
virtual firevision::VisionMaster * vision_master()
Get vision master.
virtual firevision::CameraControl * acquire_camctrl(const char *cam_string)
Retrieve a CameraControl for the specified camera string.
virtual void loop()
Thread loop.
virtual bool thread_init_failed(fawkes::Thread *thread) noexcept
Thread initialization failed.
FvBaseThread()
Constructor.
virtual void unregister_thread(fawkes::Thread *thread)
Unregister a thread.
virtual void finalize()
Finalize the thread.
virtual firevision::Camera * register_for_raw_camera(const char *camera_string, fawkes::Thread *thread)
Register thread for camera.
virtual void run()
Stub to see name in backtrace for easier debugging.
virtual firevision::Camera * register_for_camera(const char *camera_string, fawkes::Thread *thread, firevision::colorspace_t cspace=firevision::YUV422_PLANAR)
Register thread for camera.
virtual bool thread_started(fawkes::Thread *thread) noexcept
Thread started successfully.
virtual void init()
Initialize the thread.
A barrier is a synchronization tool which blocks until a given number of threads have reached the bar...
Thread aspect to use blocked timing.
Thread aspect that allows to obtain the current time from the clock.
Thread aspect to access configuration data.
Thread aspect to log output.
Thread notification listener interface.
Aspect for thread producing threads.
Thread class encapsulation of pthreads.
Camera control interface base class.
Camera interface for image aquiring devices in FireVision.
Fawkes library namespace.