21 #include "remote_skiller_executor.h"
23 #include <blackboard/remote.h>
24 #include <golog++/model/activity.h>
49 const std::string &agent_param_name,
50 const std::string &agent_param_value,
51 const std::string &hostname,
52 unsigned short int port,
54 const std::string &cfg_prefix)
56 agent_param_name_(agent_param_name),
57 agent_param_value_(agent_param_value)
62 RemoteSkillerActionExecutor::~RemoteSkillerActionExecutor()
72 if (!activity->target()->mapping().is_mapped(agent_param_name_)) {
75 return (
static_cast<std::string
>(activity->mapped_arg_value(agent_param_name_))
76 == agent_param_value_);
85 return "RemoteSkillerActionExecutor";
Interface for configuration handling.
RemoteSkillerActionExecutor(Logger *logger, const std::string &agent_name_key, const std::string &agent_name_value, const std::string &hostname, unsigned short int port, Configuration *config, const std::string &cfg_prefix)
Constructor.
const char * name() const
Get the name of the executor; mainly used for logging.
bool can_execute_activity(std::shared_ptr< gologpp::Activity > activity) const override
Determine if this executor can execute the given activity.
An ActionExecutor that executes an activity using the Skiller.
bool blackboard_owner_
True if this executor is owning its blackboard.
bool can_execute_activity(std::shared_ptr< gologpp::Activity > activity) const override
Check if we can execute the given activity.
Fawkes library namespace.