Public Member Functions | Public Attributes | Private Attributes | List of all members
ActionElement Class Reference

#include <action_daemon.h>

Public Member Functions

 ActionElement (const vda5050_msgs::Action *incomingAction, string incomingOrderId, string state)
 
bool compareActionId (string actionId2comp)
 
bool compareOrderId (string orderId2comp)
 
string getActionId () const
 
string getActionType () const
 
bool operator!= (const ActionElement &s) const
 
bool operator== (const ActionElement &s) const
 
vda5050_msgs::Action packAction ()
 

Public Attributes

string blockingType
 
bool sentToAgv
 
string state
 

Private Attributes

string actionDescription
 
string actionId
 
vector< vda5050_msgs::ActionParameter > actionParameters
 
string actionType
 
string orderId
 

Detailed Description

Stores information about a single action.

Definition at line 32 of file action_daemon.h.

Constructor & Destructor Documentation

◆ ActionElement()

ActionElement::ActionElement ( const vda5050_msgs::Action *  incomingAction,
string  incomingOrderId,
string  newState 
)

Construct a new action element object.

Parameters
incomingActionNew incoming action.
incomingOrderIdID of the related order.
stateState of the new action.

TODO: Send orderCancel to order daemon (2 cases: instantAction, failed action) TODO: Implement instantAction routine TODO: Implement orderAction routine TODO: Implement difference between paused by instantAction and paused by AGV TODO: Check if last action still running (new action blocking type hard) TODO: Sort instant actions by blocking type (hard least)??? TODO: Implement topic to cancel actions on AGV

Definition at line 34 of file action_daemon.cpp.

Member Function Documentation

◆ compareActionId()

bool ActionElement::compareActionId ( string  actionId2comp)

Checks if this Action's ID equals the given one.

Parameters
actionId2compID to compare.
Returns
true if IDs are equal.
false if IDs are not equal.

Definition at line 45 of file action_daemon.cpp.

◆ compareOrderId()

bool ActionElement::compareOrderId ( string  orderId2comp)

Checks if this Action's order ID equals the given one.

Parameters
orderId2compID to compare.
Returns
true if IDs are equal.
false if IDs are not equal.

Definition at line 50 of file action_daemon.cpp.

◆ getActionId()

string ActionElement::getActionId ( ) const

Get the Action ID object.

Returns
This Action's ID.

Definition at line 55 of file action_daemon.cpp.

◆ getActionType()

string ActionElement::getActionType ( ) const

Get the Action type object

Returns
string Action type

Definition at line 60 of file action_daemon.cpp.

◆ operator!=()

bool ActionElement::operator!= ( const ActionElement s) const
inline

Definition at line 62 of file action_daemon.h.

◆ operator==()

bool ActionElement::operator== ( const ActionElement s) const
inline

Definition at line 61 of file action_daemon.h.

◆ packAction()

vda5050_msgs::Action ActionElement::packAction ( )

Returns an action message composed of an ActionElement.

Returns
New action message.

Definition at line 65 of file action_daemon.cpp.

Member Data Documentation

◆ actionDescription

string ActionElement::actionDescription
private

Additional information on the action.

Definition at line 44 of file action_daemon.h.

◆ actionId

string ActionElement::actionId
private

Unique ID to identify the action.

Definition at line 38 of file action_daemon.h.

◆ actionParameters

vector<vda5050_msgs::ActionParameter> ActionElement::actionParameters
private

Array of action parameters.

Definition at line 47 of file action_daemon.h.

◆ actionType

string ActionElement::actionType
private

Identifies the function of the action.

Definition at line 41 of file action_daemon.h.

◆ blockingType

string ActionElement::blockingType

Blocking type of the action, Enum {NONE, SOFT, HARD}.

Definition at line 55 of file action_daemon.h.

◆ orderId

string ActionElement::orderId
private

Unique ID to identify the related order.

Definition at line 35 of file action_daemon.h.

◆ sentToAgv

bool ActionElement::sentToAgv

true if the action was sent to the AGV after being triggered.

Definition at line 58 of file action_daemon.h.

◆ state

string ActionElement::state

State of the action.

Definition at line 52 of file action_daemon.h.


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


vda5050_connector
Author(s): Florian Rothmeyer , Florian Spiegel
autogenerated on Wed Mar 22 2023 02:38:56