SOLA
Loading...
Searching...
No Matches
agv_info.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_AGV_INFO_H_
18#define DAISI_PATH_PLANNING_AGV_INFO_H_
19
20#include <cstdint>
21#include <string>
22
23#include "agv_state.h"
24#include "cpps/amr/amr_description.h"
25#include "ns3/vector.h"
26#include "transport_order_info.h"
27
28namespace daisi::path_planning {
29
31struct AGVInfo {
32 std::string id;
33 std::string ip;
34 cpps::AmrKinematics kinematics;
35 cpps::AmrLoadHandlingUnit load_handling;
36 ns3::Vector2D next_position;
37 ns3::Vector2D last_position;
38
39 // ID of the next station this AGV should approach. Set to UINT32_MAX if the AGV should stay at
40 // the current station
41 uint32_t next_station = UINT32_MAX;
42 AGVState state = AGVState::kWaitingInQueue;
43 TransportOrderInfo current_to;
44
45 [[nodiscard]] bool empty() const { return id.empty() && ip.empty(); }
46};
47} // namespace daisi::path_planning
48
49#endif // DAISI_PATH_PLANNING_AGV_INFO_H_
Definition amr_kinematics.h:23
Definition amr_load_handling_unit.h:26
Static and dynamic AGV information that a station needs to know.
Definition agv_info.h:31
Definition transport_order_info.h:26