dummy_msg_creator.h
Go to the documentation of this file.
1 /*
2  * Copyright 2022 Technical University of Munich, Chair of Materials Handling,
3  * Material Flow, Logistics – All Rights Reserved
4  *
5  * You may use, distribute and modify this code under the terms of the 3-clause
6  * BSD license. You should have received a copy of that license with this file.
7  * If not, please write to {kontakt.fml@ed.tum.de}.
8  */
9 
10 #ifndef DUMMY_MSG_CREATOR_H_
11 #define DUMMY_MSG_CREATOR_H_
12 
13 #include "vda5050_msgs/Order.h"
14 #include "vda5050_msgs/Node.h"
15 #include "vda5050_msgs/Action.h"
16 #include "vda5050_msgs/Edge.h"
17 #include "vda5050_msgs/ActionParameter.h"
18 
19 class OrderMsg
20 {
21 public:
22  OrderMsg(vda5050_msgs::Order &msg, int last_released_node, std::string& last_released_nodeId);
23  OrderMsg();
24 
25  void create_example_order(int new_headerId,
26  std::string new_orderId,
27  int new_oderUpdateId,
28  int node_num,
29  int node_released_num);
30 
31  void create_nodes(int node_num, int node_released_num);
32 
33  void create_edges(int node_num, int node_released_num);
34 
35  vda5050_msgs::Action create_actions(std::string actionType);
36 
37  // function to initialize a random string with assigned length
38  std::string rand_str(const int len);
39 
40  vda5050_msgs::Order get_msg();
41 
42 private:
43  vda5050_msgs::Order _msg;
45  std::string _last_released_nodeId;
46 };
47 
48 
49 
50 
51 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
52 // old function
53 
54 // vda5050_msgs::Order create_example_order(int new_headerId,
55 // int new_orderId,
56 // int new_oderUpdateId,
57 // int node_num);
58 
59 #endif
OrderMsg
Definition: dummy_msg_creator.h:19
OrderMsg::OrderMsg
OrderMsg()
Definition: dummy_msg_creator.cpp:19
OrderMsg::get_msg
vda5050_msgs::Order get_msg()
Definition: dummy_msg_creator.cpp:186
OrderMsg::create_edges
void create_edges(int node_num, int node_released_num)
Definition: dummy_msg_creator.cpp:77
OrderMsg::_last_released_node
int _last_released_node
Definition: dummy_msg_creator.h:44
OrderMsg::rand_str
std::string rand_str(const int len)
Definition: dummy_msg_creator.cpp:171
OrderMsg::create_example_order
void create_example_order(int new_headerId, std::string new_orderId, int new_oderUpdateId, int node_num, int node_released_num)
Definition: dummy_msg_creator.cpp:144
OrderMsg::_last_released_nodeId
std::string _last_released_nodeId
Definition: dummy_msg_creator.h:45
OrderMsg::_msg
vda5050_msgs::Order _msg
Definition: dummy_msg_creator.h:43
OrderMsg::create_nodes
void create_nodes(int node_num, int node_released_num)
Definition: dummy_msg_creator.cpp:24
OrderMsg::create_actions
vda5050_msgs::Action create_actions(std::string actionType)
Definition: dummy_msg_creator.cpp:124


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