#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 |
Stores information about a single action.
Definition at line 32 of file action_daemon.h.
| ActionElement::ActionElement | ( | const vda5050_msgs::Action * | incomingAction, |
| string | incomingOrderId, | ||
| string | newState | ||
| ) |
Construct a new action element object.
| incomingAction | New incoming action. |
| incomingOrderId | ID of the related order. |
| state | State 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.
| bool ActionElement::compareActionId | ( | string | actionId2comp | ) |
Checks if this Action's ID equals the given one.
| actionId2comp | ID to compare. |
Definition at line 45 of file action_daemon.cpp.
| bool ActionElement::compareOrderId | ( | string | orderId2comp | ) |
Checks if this Action's order ID equals the given one.
| orderId2comp | ID to compare. |
Definition at line 50 of file action_daemon.cpp.
| string ActionElement::getActionId | ( | ) | const |
| string ActionElement::getActionType | ( | ) | const |
Get the Action type object
Definition at line 60 of file action_daemon.cpp.
|
inline |
Definition at line 62 of file action_daemon.h.
|
inline |
Definition at line 61 of file action_daemon.h.
| vda5050_msgs::Action ActionElement::packAction | ( | ) |
Returns an action message composed of an ActionElement.
Definition at line 65 of file action_daemon.cpp.
|
private |
Additional information on the action.
Definition at line 44 of file action_daemon.h.
|
private |
Unique ID to identify the action.
Definition at line 38 of file action_daemon.h.
|
private |
Array of action parameters.
Definition at line 47 of file action_daemon.h.
|
private |
Identifies the function of the action.
Definition at line 41 of file action_daemon.h.
| string ActionElement::blockingType |
Blocking type of the action, Enum {NONE, SOFT, HARD}.
Definition at line 55 of file action_daemon.h.
|
private |
Unique ID to identify the related order.
Definition at line 35 of file action_daemon.h.
| bool ActionElement::sentToAgv |
true if the action was sent to the AGV after being triggered.
Definition at line 58 of file action_daemon.h.
| string ActionElement::state |
State of the action.
Definition at line 52 of file action_daemon.h.