0.4.1
Loading...
Searching...
No Matches
Terminator.hpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
9/// @file Terminator.hpp
10/// @brief Terminator for open signals. Mainly used for test flows
11/// @author T. Topp (topp@ins.uni-stuttgart.de)
12/// @date 2024-01-11
13
14#pragma once
15
16#include <array>
18
20
22#include "util/Eigen.hpp"
23
24namespace NAV
25{
26/// Terminator for open signals. Mainly used for test flows
27class Terminator : public Node
28{
29 public:
30 /// @brief Default constructor
31 Terminator();
32 /// @brief Destructor
33 ~Terminator() override;
34 /// @brief Copy Constructor
35 Terminator(const Terminator&) = delete;
36 /// @brief Move Constructor
38 /// @brief Copy assignment operator
39 Terminator& operator=(const Terminator&) = delete;
40 /// @brief Move assignment operator
42
43 /// @brief String representation of the Class Type
44 [[nodiscard]] static std::string typeStatic();
45
46 /// @brief String representation of the Class Type
47 [[nodiscard]] std::string type() const override;
48
49 /// @brief String representation of the Class Category
50 [[nodiscard]] static std::string category();
51
52 private:
53 constexpr static size_t INPUT_PORT_INDEX_FLOW = 0; ///< @brief Flow
54
55 /// @brief Callback when receiving data on a port
56 /// @param[in] queue Queue with all the received data messages
57 /// @param[in] pinIdx Index of the pin the data is received on
58 void receiveObs(InputPin::NodeDataQueue& queue, size_t pinIdx);
59};
60} // namespace NAV
Vector space operations.
The class is responsible for all time-related tasks.
Node Class.
Widget to modify time point values.
TsDeque< std::shared_ptr< const NAV::NodeData > > NodeDataQueue
Node data queue type.
Definition Pin.hpp:707
Node(std::string name)
Constructor.
Definition Node.cpp:30
Terminator & operator=(Terminator &&)=delete
Move assignment operator.
Terminator(const Terminator &)=delete
Copy Constructor.
static constexpr size_t INPUT_PORT_INDEX_FLOW
Flow.
std::string type() const override
String representation of the Class Type.
void receiveObs(InputPin::NodeDataQueue &queue, size_t pinIdx)
Callback when receiving data on a port.
static std::string category()
String representation of the Class Category.
Terminator(Terminator &&)=delete
Move Constructor.
static std::string typeStatic()
String representation of the Class Type.
Terminator & operator=(const Terminator &)=delete
Copy assignment operator.
~Terminator() override
Destructor.
Terminator()
Default constructor.