24 #ifndef _ASPECT_BLOCKED_TIMING_H_
25 #define _ASPECT_BLOCKED_TIMING_H_
27 #include <aspect/aspect.h>
28 #include <aspect/syncpoint.h>
29 #include <core/threading/thread_loop_listener.h>
Thread aspect to use blocked timing.
WakeupHook blockedTimingAspectHook() const
Get the wakeup hook.
BlockedTimingAspect(WakeupHook wakeup_hook)
Constructor.
WakeupHook
Type to define at which hook the thread is woken up.
@ WAKEUP_HOOK_SENSOR_ACQUIRE
sensor acquisition thread, acquire data from sensor
@ WAKEUP_HOOK_ACT
act thread (motor module etc.)
@ WAKEUP_HOOK_WORLDSTATE
world state thread
@ WAKEUP_HOOK_PRE_LOOP
before each loop
@ WAKEUP_HOOK_SENSOR_PREPARE
sensor data preparation thread, convert acquired data to usable format
@ WAKEUP_HOOK_THINK
think thread (agent)
@ WAKEUP_HOOK_POST_LOOP
run after loop
@ WAKEUP_HOOK_SKILL
skill thread (skill module)
@ WAKEUP_HOOK_SENSOR_PROCESS
sensor data processing thread
@ WAKEUP_HOOK_ACT_EXEC
act execution thread
static const std::map< const WakeupHook, const std::string > hook_to_syncpoint
Translation from WakeupHooks to SyncPoints.
void finalize_BlockedTimingAspect(Thread *thread)
Finalize BlockedTiming aspect.
static std::string blocked_timing_hook_to_end_syncpoint(WakeupHook hook)
Get the syncpoint identifier corresponding to the end of a wakeup hook.
static std::string blocked_timing_hook_to_start_syncpoint(WakeupHook hook)
Get the syncpoint identifier corresponding to the start of a wakeup hook.
static const char * blocked_timing_hook_to_string(WakeupHook hook)
Get string for wakeup hook.
void init_BlockedTimingAspect(Thread *thread)
Init BlockedTiming aspect.
virtual ~BlockedTimingAspect()
Virtual empty destructor.
Loop Listener of the BlockedTimingAspect.
void post_loop(Thread *thread)
The post loop function of the BlockedTimingAspect This function is called right after the loop of the...
Thread aspect to acces to SyncPoints Give this aspect to your thread to manage SyncPoints,...
Thread loop listener interface.
Thread class encapsulation of pthreads.
Fawkes library namespace.