18 #include <SDKDDKVer.h>
20 #include <boost/asio.hpp>
22 #include <boost/asio.hpp>
34namespace NAV::experimental
57 [[nodiscard]] std::string
type()
const override;
92 std::array<char, _maxLength>
_data{};
The class is responsible for all time-related tasks.
Abstract IMU Class.
Definition Imu.hpp:24
SkydelNetworkStream Sensor Class.
Definition SkydelNetworkStream.hpp:38
std::thread _testThread
Thread for receiver fct.
Definition SkydelNetworkStream.hpp:86
std::string type() const override
String representation of the Class Type.
void deinitialize() override
Deinitialize the node.
bool initialize() override
Initialize the node.
int _startNow
Definition SkydelNetworkStream.hpp:123
void guiConfig() override
ImGui config window which is shown on double click.
boost::asio::ip::udp::endpoint _senderEndpoint
Boost udp endpoint.
Definition SkydelNetworkStream.hpp:95
SkydelNetworkStream & operator=(SkydelNetworkStream &&)=delete
Move assignment operator.
int _startCounter
Counter for packages that are skipped until data rate is shown.
Definition SkydelNetworkStream.hpp:120
bool resetNode() override
Resets the node. It is guaranteed that the node is initialized when this is called.
SkydelNetworkStream(SkydelNetworkStream &&)=delete
Move constructor.
SkydelNetworkStream & operator=(const SkydelNetworkStream &)=delete
Copy assignment operator.
static constexpr size_t OUTPUT_PORT_INDEX_IMU_OBS
Port number of the Skydel-ImuObs output.
Definition SkydelNetworkStream.hpp:70
static constexpr size_t OUTPUT_PORT_INDEX_GNSS_OBS
Port number of the Skydel-GnssObs output.
Definition SkydelNetworkStream.hpp:71
bool _isStartup
Startup handler: used in 'initialize()' to differentiate between startup and re-initialization.
Definition SkydelNetworkStream.hpp:102
int _packageCount
Counter for received packages.
Definition SkydelNetworkStream.hpp:111
bool _stop
Stop handler: once true, the asynchronous receive function stops.
Definition SkydelNetworkStream.hpp:100
~SkydelNetworkStream() override
Destructor.
boost::asio::io_context _ioservice
Asynchronous receive fct.
Definition SkydelNetworkStream.hpp:80
static std::string typeStatic()
String representation of the Class Type.
std::array< char, _maxLength > _data
Network data stream array.
Definition SkydelNetworkStream.hpp:92
static std::string category()
String representation of the Class Category.
uint64_t _lastMessageTime
Stores the time of the last received message.
Definition SkydelNetworkStream.hpp:108
SkydelNetworkStream()
Default constructor.
boost::asio::ip::udp::socket _socket
Boost udp socket.
Definition SkydelNetworkStream.hpp:97
SkydelNetworkStream(const SkydelNetworkStream &)=delete
Copy constructor.
std::chrono::steady_clock::time_point _startPoint
Time point where the first package has been received.
Definition SkydelNetworkStream.hpp:105
double _dataRate
Data rate of the received network stream [Hz].
Definition SkydelNetworkStream.hpp:117
static constexpr unsigned int _maxLength
Network data stream buffer size (boost::asio)
Definition SkydelNetworkStream.hpp:89
int _packagesNumber
Definition SkydelNetworkStream.hpp:114
void do_receive()
Receive Skydel network stream data.