![]() |
0.5.1
|
Allows creation of GNSS measurement combinations. More...
Data Structures | |
| struct | Combination |
| Combination of GNSS measurements. More... | |
Public Member Functions | |
| GnssAnalyzer () | |
| Default constructor. | |
| GnssAnalyzer (const GnssAnalyzer &)=delete | |
| Copy constructor. | |
| GnssAnalyzer (GnssAnalyzer &&)=delete | |
| Move constructor. | |
| void | guiConfig () override |
| ImGui config window which is shown on double click. | |
| GnssAnalyzer & | operator= (const GnssAnalyzer &)=delete |
| Copy assignment operator. | |
| GnssAnalyzer & | operator= (GnssAnalyzer &&)=delete |
| Move assignment operator. | |
| void | restore (const json &j) override |
| Restores the node from a json object. | |
| json | save () const override |
| Saves the node into a json object. | |
| std::string | type () const override |
| String representation of the Class Type. | |
| ~GnssAnalyzer () override | |
| Destructor. | |
| Public Member Functions inherited from NAV::Node | |
| virtual void | afterCreateLink (OutputPin &startPin, InputPin &endPin) |
| Called when a new link was established. | |
| virtual void | afterDeleteLink (OutputPin &startPin, InputPin &endPin) |
| Called when a link was deleted. | |
| template<std::derived_from< Node > T> | |
| InputPin * | CreateInputPin (const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier, void(T::*notifyFunc)(const InsTime &, size_t), int idx=-1) |
| Create an Input Pin object for data pins. The additional notify function gets called when the connected data was changed and the connected node calls NAV::Node::notifyOutputValueChanged. | |
| InputPin * | CreateInputPin (const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier={}, InputPin::Callback callback=static_cast< InputPin::FlowFirableCallbackFunc >(nullptr), InputPin::FlowFirableCheckFunc firable=nullptr, int priority=0, int idx=-1) |
| Create an Input Pin object. | |
| template<std::derived_from< Node > T> | |
| InputPin * | CreateInputPin (const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier={}, void(T::*callback)(InputPin::NodeDataQueue &, size_t)=nullptr, InputPin::FlowFirableCheckFunc firable=nullptr, int priority=0, int idx=-1) |
| Create an Input Pin object. | |
| OutputPin * | CreateOutputPin (const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier, OutputPin::PinData data=static_cast< void * >(nullptr), int idx=-1) |
| Create an Output Pin object. | |
| template<std::derived_from< Node > T> | |
| OutputPin * | CreateOutputPin (const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier, std::shared_ptr< const NAV::NodeData >(T::*peekPollDataFunc)(size_t, bool)=nullptr, int idx=-1) |
| Create an Output Pin object for Flow Pins. | |
| template<std::derived_from< Node > T> | |
| OutputPin * | CreateOutputPin (const char *name, Pin::Type pinType, const std::vector< std::string > &dataIdentifier, std::shared_ptr< const NAV::NodeData >(T::*pollDataFunc)()=nullptr, int idx=-1) |
| Create an Output Pin object for Flow Pins. | |
| bool | DeleteInputPin (size_t pinIndex) |
| Deletes the input pin. Invalidates the pin reference given. | |
| bool | DeleteOutputPin (size_t pinIndex) |
| Deletes the output pin. Invalidates the pin reference given. | |
| bool | doDeinitialize (bool wait=false) |
| Asks the node worker to deinitialize the node. | |
| bool | doDisable (bool wait=false) |
| Asks the node worker to disable the node. | |
| bool | doEnable () |
| Enable the node. | |
| bool | doInitialize (bool wait=false) |
| Asks the node worker to initialize the node. | |
| bool | doReinitialize (bool wait=false) |
| Asks the node worker to reinitialize the node. | |
| virtual void | flush () |
| Function called by the flow executer after finishing to flush out remaining data. | |
| template<typename T> | |
| std::optional< InputPin::IncomingLink::ValueWrapper< T > > | getInputValue (size_t portIndex) const |
| Get Input Value connected on the pin. Only const data types. | |
| Mode | getMode () const |
| Get the current mode of the node. | |
| const ImVec2 & | getSize () const |
| Get the size of the node. | |
| State | getState () const |
| Get the current state of the node. | |
| bool | hasInputPinWithSameTime (const InsTime &insTime) const |
| Checks wether there is an input pin with the same time. | |
| InputPin & | inputPinFromId (ax::NodeEditor::PinId pinId) |
| Returns the pin with the given id. | |
| size_t | inputPinIndexFromId (ax::NodeEditor::PinId pinId) const |
| Returns the index of the pin. | |
| void | invokeCallbacks (size_t portIndex, const std::shared_ptr< const NodeData > &data) |
| Calls all registered callbacks on the specified output port. | |
| bool | isDisabled () const |
| Checks if the node is disabled. | |
| bool | isInitialized () const |
| Checks if the node is initialized. | |
| bool | isOnlyRealtime () const |
| Checks if the node is only working in real time (sensors, network interfaces, ...) | |
| bool | isTransient () const |
| Checks if the node is changing its state currently. | |
| std::string | nameId () const |
| Node name and id. | |
| Node (const Node &)=delete | |
| Copy constructor. | |
| Node (Node &&)=delete | |
| Move constructor. | |
| Node (std::string name) | |
| Constructor. | |
| void | notifyOutputValueChanged (size_t pinIdx, const InsTime &insTime, const std::scoped_lock< std::mutex > &&guard) |
| Notifies connected nodes about the change. | |
| virtual bool | onCreateLink (OutputPin &startPin, InputPin &endPin) |
| Called when a new link is to be established. | |
| virtual void | onDeleteLink (OutputPin &startPin, InputPin &endPin) |
| Called when a link is to be deleted. | |
| Node & | operator= (const Node &)=delete |
| Copy assignment operator. | |
| Node & | operator= (Node &&)=delete |
| Move assignment operator. | |
| OutputPin & | outputPinFromId (ax::NodeEditor::PinId pinId) |
| Returns the pin with the given id. | |
| size_t | outputPinIndexFromId (ax::NodeEditor::PinId pinId) const |
| Returns the index of the pin. | |
| void | releaseInputValue (size_t portIndex) |
| Unblocks the connected node. Has to be called when the input value should be released and getInputValue was not called. | |
| std::scoped_lock< std::mutex > | requestOutputValueLock (size_t pinIdx) |
| Blocks the thread till the output values was read by all connected nodes. | |
| virtual bool | resetNode () |
| Resets the node. It is guaranteed that the node is initialized when this is called. | |
| virtual void | restoreAtferLink (const json &j) |
| Restores link related properties of the node from a json object. | |
| void | wakeWorker () |
| Wakes the worker thread. | |
| virtual | ~Node () |
| Destructor. | |
Static Public Member Functions | |
| static std::string | category () |
| String representation of the Class Category. | |
| static std::string | typeStatic () |
| String representation of the Class Type. | |
| Static Public Member Functions inherited from NAV::Node | |
| static std::string | toString (State state) |
| Converts the state into a printable text. | |
Private Member Functions | |
| void | deinitialize () override |
| Deinitialize the node. | |
| bool | initialize () override |
| Initialize the node. | |
| void | receiveGnssObs (InputPin::NodeDataQueue &queue, size_t pinIdx) |
| Receive Gnss observation. | |
Private Attributes | |
| std::vector< Combination > | _combinations |
| Combinations to calculate. | |
Static Private Attributes | |
| static constexpr size_t | INPUT_PORT_INDEX_GNSS_OBS |
| Flow (GnssObs) | |
| static constexpr size_t | OUTPUT_PORT_INDEX_GNSS_COMBINATION |
| Flow (GnssCombination) | |
Friends | |
| void | from_json (const json &j, Combination::Term &data) |
| Read info from a json object. | |
| void | from_json (const json &j, GnssAnalyzer::Combination &data) |
| Read info from a json object. | |
| void | to_json (json &j, const Combination &data) |
| Write info to a json object. | |
| void | to_json (json &j, const Combination::Term &data) |
| Write info to a json object. | |
Additional Inherited Members | |
| Public Types inherited from NAV::Node | |
| enum class | Mode : uint8_t { REAL_TIME , POST_PROCESSING } |
| Different Modes the Node can work in. More... | |
| enum class | State : uint8_t { Disabled , Deinitialized , DoInitialize , Initializing , Initialized , DoDeinitialize , Deinitializing , DoShutdown , Shutdown } |
| Possible states of the node. More... | |
| Data Fields inherited from NAV::Node | |
| bool | callbacksEnabled |
| Enables the callbacks. | |
| ax::NodeEditor::NodeId | id |
| Unique Id of the Node. | |
| std::vector< InputPin > | inputPins |
| List of input pins. | |
| Kind | kind |
| Kind of the Node. | |
| std::string | name |
| Name of the Node. | |
| std::vector< OutputPin > | outputPins |
| List of output pins. | |
| std::multimap< InsTime, std::pair< OutputPin *, size_t > > | pollEvents |
| Map with callback events (sorted by time) | |
| Protected Attributes inherited from NAV::Node | |
| ImVec2 | _guiConfigDefaultWindowSize |
| bool | _hasConfig |
| Flag if the config window should be shown. | |
| bool | _lockConfigDuringRun |
| Lock the config when executing post-processing. | |
| bool | _onlyRealTime |
| Whether the node can run in post-processing or only real-time. | |
Allows creation of GNSS measurement combinations.
Definition at line 27 of file GnssAnalyzer.hpp.
| NAV::GnssAnalyzer::GnssAnalyzer | ( | ) |
Default constructor.
Definition at line 98 of file GnssAnalyzer.cpp.
|
override |
Destructor.
Definition at line 111 of file GnssAnalyzer.cpp.
|
delete |
Copy constructor.
|
delete |
Move constructor.
|
staticnodiscard |
String representation of the Class Category.
Definition at line 126 of file GnssAnalyzer.cpp.
|
overrideprivatevirtual |
Deinitialize the node.
Reimplemented from NAV::Node.
Definition at line 351 of file GnssAnalyzer.cpp.
|
overridevirtual |
ImGui config window which is shown on double click.
Reimplemented from NAV::Node.
Definition at line 131 of file GnssAnalyzer.cpp.
|
overrideprivatevirtual |
|
delete |
Copy assignment operator.
|
delete |
Move assignment operator.
|
private |
Receive Gnss observation.
| [in] | queue | Queue with all the received data messages |
| [in] | pinIdx | Index of the pin the data is received on |
Definition at line 364 of file GnssAnalyzer.cpp.
|
overridevirtual |
Restores the node from a json object.
| [in] | j | Json object with the node state |
Reimplemented from NAV::Node.
Definition at line 324 of file GnssAnalyzer.cpp.
|
nodiscardoverridevirtual |
Saves the node into a json object.
Reimplemented from NAV::Node.
Definition at line 313 of file GnssAnalyzer.cpp.
|
nodiscardoverridevirtual |
String representation of the Class Type.
Implements NAV::Node.
Definition at line 121 of file GnssAnalyzer.cpp.
|
staticnodiscard |
String representation of the Class Type.
Definition at line 116 of file GnssAnalyzer.cpp.
|
friend |
Read info from a json object.
| [in] | j | Json variable to read info from |
| [out] | data | Output object |
Definition at line 43 of file GnssAnalyzer.cpp.
|
friend |
Read info from a json object.
| [in] | j | Json variable to read info from |
| [out] | data | Output object |
Definition at line 68 of file GnssAnalyzer.cpp.
|
friend |
Write info to a json object.
| [out] | j | Json output |
| [in] | data | Object to read info from |
Definition at line 53 of file GnssAnalyzer.cpp.
|
friend |
Write info to a json object.
| [out] | j | Json output |
| [in] | data | Object to read info from |
Definition at line 32 of file GnssAnalyzer.cpp.
|
private |
Combinations to calculate.
Definition at line 149 of file GnssAnalyzer.hpp.
|
staticconstexprprivate |
Flow (GnssObs)
Definition at line 64 of file GnssAnalyzer.hpp.
|
staticconstexprprivate |
Flow (GnssCombination)
Definition at line 65 of file GnssAnalyzer.hpp.