Go to the documentation of this file.
11 #include <RobotAPI/interface/skills/SkillManagerInterface.h>
15 using StatusMap = std::map<skills::SkillExecutionID, skills::SkillStatusUpdate>;
17 std::map<skills::ProviderID, std::map<skills::SkillID, skills::SkillDescription>>;
24 QObject* parent =
nullptr) :
25 QObject(parent),
memory(_memory)
37 void connectMemory(skills::manager::dti::SkillManagerInterfacePrx
const& updatedMemory);
53 const unsigned int max_retries = 0);
109 mutable std::mutex mutex_memory;
110 mutable std::mutex mutex_snapshot;
112 armarx::skills::manager::dti::SkillManagerInterfacePrx
memory;
113 std::string currentSkillSearch =
"";
133 Snapshot filterUpdate(Snapshot
update);
139 static constexpr
bool UPDATE_ON_EXECUTION_REQUEST =
true;
void startExecutionWithParams(skills::SkillID &skillId, aron::data::DictPtr const params)
Attempts to start an execution with given parameters.
void updateAvailable(Snapshot update)
void updateFromMemory()
Requests this wrapper to overwrite its own state from memory.
std::map< skills::SkillExecutionID, skills::SkillStatusUpdate > StatusMap
void disconnectMemory()
Disconnects the interface from memory.
void connectionUpdate(std::string const &message, std::string const &error)
message(STATUS "Boost-Library-Dir: " "${Boost_LIBRARY_DIRS}") message(STATUS "Boost-LIBRARIES
Brief description of class memory.
static const std::optional< skills::ProviderID > findFirstProvider(SkillMap const &map, SkillID const &skillId)
StatusMap getExecutions()
Returns the latest status snapshot.
SkillManagerWrapper(skills::manager::dti::SkillManagerInterfacePrx &_memory, QObject *parent=nullptr)
std::map< skills::ProviderID, std::map< skills::SkillID, skills::SkillDescription > > SkillMap
bool update(mongocxx::collection &coll, const nlohmann::json &query, const nlohmann::json &update)
std::shared_ptr< Dict > DictPtr
void stopAllExecutions()
Stops all available (and running) executions.
SkillMap getSkills()
Returns the latest skills snapshot.
void acceptSearchRequest(std::string const &search)
Applies the search word to the update filter.
void connectMemory(skills::manager::dti::SkillManagerInterfacePrx const &updatedMemory)
Updates the memory pointer.
void stopExecution(skills::SkillExecutionID const &executionId, const unsigned int max_retries=0)
Attempts to stop an execution.
SkillManagerWrapper(QObject *parent=nullptr)