SkillManagerWrapper Class Reference

#include <RobotAPI/libraries/skills_gui/memory/SkillManagerWrapper.h>

+ Inheritance diagram for SkillManagerWrapper:

Classes

struct  Snapshot
 

Public Slots

void acceptSearchRequest (std::string const &search)
 Applies the search word to the update filter. More...
 
void disconnectMemory ()
 Disconnects the interface from memory. More...
 
void stopAllExecutions ()
 Stops all available (and running) executions. More...
 
void updateFromMemory ()
 Requests this wrapper to overwrite its own state from memory. More...
 

Signals

void connectionUpdate (std::string const &message, std::string const &error)
 
void searchAccepted ()
 
void updateAvailable (Snapshot update)
 

Public Member Functions

void connectMemory (skills::manager::dti::SkillManagerInterfacePrx const &updatedMemory)
 Updates the memory pointer. More...
 
StatusMap getExecutions ()
 Returns the latest status snapshot. More...
 
SkillMap getSkills ()
 Returns the latest skills snapshot. More...
 
 SkillManagerWrapper (QObject *parent=nullptr)
 
 SkillManagerWrapper (skills::manager::dti::SkillManagerInterfacePrx &_memory, QObject *parent=nullptr)
 
void startExecutionWithParams (skills::SkillID &skillId, aron::data::DictPtr const params)
 Attempts to start an execution with given parameters. More...
 
void stopExecution (skills::SkillExecutionID const &executionId, const unsigned int max_retries=0)
 Attempts to stop an execution. More...
 

Static Public Member Functions

static const std::optional< skills::ProviderIDfindFirstProvider (SkillMap const &map, SkillID const &skillId)
 

Detailed Description

Definition at line 19 of file SkillManagerWrapper.h.

Constructor & Destructor Documentation

◆ SkillManagerWrapper() [1/2]

SkillManagerWrapper ( skills::manager::dti::SkillManagerInterfacePrx &  _memory,
QObject *  parent = nullptr 
)
inline

Definition at line 23 of file SkillManagerWrapper.h.

◆ SkillManagerWrapper() [2/2]

SkillManagerWrapper ( QObject *  parent = nullptr)
inline

Definition at line 30 of file SkillManagerWrapper.h.

Member Function Documentation

◆ acceptSearchRequest

void acceptSearchRequest ( std::string const &  search)
slot

Applies the search word to the update filter.

Parameters
searchThe search word.

Definition at line 189 of file SkillManagerWrapper.cpp.

◆ connectionUpdate

void connectionUpdate ( std::string const &  message,
std::string const &  error 
)
signal
+ Here is the caller graph for this function:

◆ connectMemory()

void connectMemory ( skills::manager::dti::SkillManagerInterfacePrx const &  updatedMemory)

Updates the memory pointer.

This should be called whenever the GUI connects/reconnects.

Definition at line 172 of file SkillManagerWrapper.cpp.

◆ disconnectMemory

void disconnectMemory ( )
slot

Disconnects the interface from memory.

Definition at line 180 of file SkillManagerWrapper.cpp.

◆ findFirstProvider()

const std::optional< ProviderID > findFirstProvider ( SkillMap const &  map,
SkillID const &  skillId 
)
static

Definition at line 239 of file SkillManagerWrapper.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getExecutions()

StatusMap getExecutions ( )

Returns the latest status snapshot.

Returns
The map containing status updates for all execution ids.

Definition at line 273 of file SkillManagerWrapper.cpp.

+ Here is the caller graph for this function:

◆ getSkills()

SkillMap getSkills ( )

Returns the latest skills snapshot.

Returns
The map representing all currently known skills.

Definition at line 263 of file SkillManagerWrapper.cpp.

+ Here is the caller graph for this function:

◆ searchAccepted

void searchAccepted ( )
signal
+ Here is the caller graph for this function:

◆ startExecutionWithParams()

void startExecutionWithParams ( skills::SkillID skillId,
aron::data::DictPtr const  params 
)

Attempts to start an execution with given parameters.

If an Ice exception is encountered, a message will be logged and the method will abort.

Parameters
skillIdThe skill to execute.
paramsThe parameters to execute with.

Definition at line 334 of file SkillManagerWrapper.cpp.

+ Here is the call graph for this function:

◆ stopAllExecutions

void stopAllExecutions ( )
slot

Stops all available (and running) executions.

Definition at line 196 of file SkillManagerWrapper.cpp.

+ Here is the call graph for this function:

◆ stopExecution()

void stopExecution ( skills::SkillExecutionID const &  executionId,
const unsigned int  max_retries = 0 
)

Attempts to stop an execution.

If this doesn't succeed, it will retry.

Parameters
executionIdThe ExecutionID to abort.
max_retriesThe amount of times to retry, if aborting fails.

Definition at line 280 of file SkillManagerWrapper.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateAvailable

void updateAvailable ( Snapshot  update)
signal
+ Here is the caller graph for this function:

◆ updateFromMemory

void updateFromMemory ( )
slot

Requests this wrapper to overwrite its own state from memory.

Definition at line 227 of file SkillManagerWrapper.cpp.


The documentation for this class was generated from the following files: