SOLA
Loading...
Searching...
No Matches
path_planning_logger_ns_3.h
1// Copyright 2023 The SOLA authors
2//
3// This file is part of DAISI.
4//
5// DAISI is free software: you can redistribute it and/or modify it under the terms of the GNU
6// General Public License as published by the Free Software Foundation; version 2.
7//
8// DAISI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
9// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
10// Public License for more details.
11//
12// You should have received a copy of the GNU General Public License along with DAISI. If not, see
13// <https://www.gnu.org/licenses/>.
14//
15// SPDX-License-Identifier: GPL-2.0-only
16
17#ifndef DAISI_PATH_PLANNING_PATH_PLANNING_LOGGER_NS3_H_
18#define DAISI_PATH_PLANNING_PATH_PLANNING_LOGGER_NS3_H_
19
20#include "cpps/common/cpps_logger_ns3.h"
21#include "logging/definitions.h"
22#include "task.h"
23
24namespace daisi::path_planning {
28public:
29 PathPlanningLoggerNs3(LogDeviceApp log_device_application, LogFunction log);
30
31 void logTOSpawn(const std::string &to_uuid, uint32_t station_id, uint32_t time_to_station);
32
33 void logIntersectOccupancy(uint32_t from, uint32_t to, const std::string &agv_id,
34 const std::string &to_state, float intersect_x, float intersect_y,
35 double time);
36 void logConsensusFinished(uint32_t instance, uint32_t station, const std::string &uuid);
37
38 void logReplication(const std::string &id, uint32_t instance_id, uint32_t proposal_id,
39 uint32_t station_id);
40
41 void logSendPathPlanningTraffic(const std::string &sender, const std::string &target,
42 uint32_t msg_type);
43 void logRecvPathPlanningTraffic(const std::string &sender, const std::string &target,
44 uint32_t msg_type);
45 void logPPTransportOrderUpdate(const std::string &order_uuid, uint32_t status,
46 const std::string &agv = "");
47
48 void logSendPathPlanningTopicTraffic(const std::string &topic, const std::string &node,
49 uint32_t instance, uint32_t msg_type);
50 void logRecvPathPlanningTopicTraffic(const std::string &topic, const std::string &node,
51 uint32_t instance, uint32_t msg_type);
52
53 void logTransportOrderUpdate(const Task &order, const std::string &assigned_agv = "");
54 void logTransportOrderUpdate(const std::string &order_uuid, uint32_t status,
55 const std::string &assigned_agv);
56};
57} // namespace daisi::path_planning
58
59#endif // DAISI_PATH_PLANNING_PATH_PLANNING_LOGGER_NS3_H_
Definition cpps_logger_ns3.h:96
Definition path_planning_logger_ns_3.h:27
Definition task.h:30