Fawkes API Fawkes Development Version
|
A Golog++ backend to get data from and send commands to Fawkes. More...
Public Member Functions | |
GologppFawkesBackend (Configuration *config, std::string cfg_prefix, Logger *logger, BlackBoard *blackboard) | |
Constructor. More... | |
virtual void | preempt_activity (std::shared_ptr< gologpp::Activity > a) override |
Preempt the currently running activity. More... | |
virtual gologpp::Clock::time_point | time () const noexcept override |
Get the current time from Fawkes. More... | |
![]() | |
ClockAspect () | |
Constructor. More... | |
virtual | ~ClockAspect () |
Virtual empty destructor. More... | |
void | init_ClockAspect (Clock *clock) |
Set the clock. More... | |
![]() | |
const std::list< const char * > & | get_aspects () const |
Get list of aspect names attached to a aspected thread. More... | |
![]() | |
GologppDispatcherAspect () | |
Constructor. More... | |
void | init_GologppDispatcherAspect (gpp::ActionExecutorDispatcher *dispatcher) |
Init GologppDispatcherAspect. More... | |
void | finalize_GologppDispatcherAspect () |
Finalize the GologppDispatcherAspect. More... | |
![]() | |
AspectProviderAspect (AspectIniFin *inifin) | |
Constructor. More... | |
AspectProviderAspect (const std::list< AspectIniFin * > aspects) | |
Constructor. More... | |
virtual | ~AspectProviderAspect () |
Virtual empty destructor. More... | |
const std::list< AspectIniFin * > & | aspect_provider_aspects () const |
Get name of the provided aspect. More... | |
Additional Inherited Members | |
![]() | |
void | add_aspect (const char *name) |
Add an aspect to a thread. More... | |
![]() | |
Clock * | clock |
By means of this member access to the clock is given. More... | |
![]() | |
gpp::ActionExecutorDispatcher * | gologpp_dispatcher |
A pointer to the dispatcher that the aspect provides. More... | |
A Golog++ backend to get data from and send commands to Fawkes.
The backend currently only provides access to the skiller for action execution.
Definition at line 42 of file gologpp_fawkes_backend.h.
fawkes::gpp::GologppFawkesBackend::GologppFawkesBackend | ( | Configuration * | config, |
std::string | cfg_prefix, | ||
Logger * | logger, | ||
BlackBoard * | blackboard | ||
) |
Constructor.
config | The configuration to read from |
cfg_prefix | The spec-specific config prefix to use |
logger | The logger to use for log messages |
blackboard | The blackboard to use to access the skiller |
Definition at line 51 of file gologpp_fawkes_backend.cpp.
References fawkes::Configuration::get_bool_or_default(), fawkes::Configuration::get_string_or_default(), fawkes::Configuration::get_strings_or_defaults(), fawkes::Configuration::get_uint_or_default(), and fawkes::gpp::ActionExecutorDispatcher::register_executor().
|
virtual |
Definition at line 80 of file gologpp_fawkes_backend.cpp.
|
overridevirtual |
Preempt the currently running activity.
Determine the right executor and instruct the executor to stop the activity.
a | The activity to stop |
Definition at line 89 of file gologpp_fawkes_backend.cpp.
References fawkes::gpp::ActionExecutorDispatcher::get_executor().
|
overridevirtualnoexcept |
Get the current time from Fawkes.
Definition at line 99 of file gologpp_fawkes_backend.cpp.
References fawkes::ClockAspect::clock, fawkes::Time::in_sec(), and fawkes::Clock::now().