19#include <boost/asio.hpp>
45 [[nodiscard]] std::string
type()
const override;
65 constexpr static size_t OUTPUT_PORT_INDEX_NODE_DATA = 0;
68 bool initialize()
override;
71 void deinitialize()
override;
80 static constexpr std::array<int, 2> PORT_LIMITS = { 0, 65535 };
83 boost::asio::io_context _io_context;
85 boost::asio::ip::udp::socket _socket;
87 boost::asio::ip::udp::endpoint _sender_endpoint;
90 std::thread _recvThread;
93 bool _running =
false;
95 bool _isStartup =
true;
98 std::chrono::steady_clock::time_point _startPoint;
101 constexpr static unsigned int _maxBytes = 104;
104 std::array<double, 13> _data{};
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Position, Velocity and Attitude Storage Class.
Abstract parent class for all nodes.
Definition Node.hpp:86
UDP Client.
Definition udpRecv.hpp:26
UdpRecv()
Default constructor.
void guiConfig() override
ImGui config window which is shown on double click.
static std::string typeStatic()
String representation of the Class Type.
~UdpRecv() override
Destructor.
UdpRecv(UdpRecv &&)=delete
Move constructor.
bool resetNode() override
Resets the node. Moves the read cursor to the start.
UdpRecv & operator=(const UdpRecv &)=delete
Copy assignment operator.
static std::string category()
String representation of the Class Category.
UdpRecv & operator=(UdpRecv &&)=delete
Move assignment operator.
void restore(const json &j) override
Restores the node from a json object.
UdpRecv(const UdpRecv &)=delete
Copy constructor.
json save() const override
Saves the node into a json object.
std::string type() const override
String representation of the Class Type.