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
std::string _last_released_nodeId
int _last_released_node
void create_nodes(int node_num, int node_released_num)
vda5050_msgs::Order _msg
void create_example_order(int new_headerId, std::string new_orderId, int new_oderUpdateId, int node_num, int node_released_num)
std::string rand_str(const int len)
vda5050_msgs::Action create_actions(std::string actionType)
void create_edges(int node_num, int node_released_num)
vda5050_msgs::Order get_msg()


vda5050_connector
Author(s): Florian Rothmeyer , Florian Spiegel
autogenerated on Tue Mar 21 2023 02:52:00