![]()  | 
              
                  0.5.0
                 
               | 
            
Data Logger for PosVelAtt observations. More...
Public Member Functions | |
| CsvLogger () | |
| Default constructor.   | |
| CsvLogger (const CsvLogger &)=delete | |
| Copy constructor.   | |
| CsvLogger (CsvLogger &&)=delete | |
| Move constructor.   | |
| void | flush () override | 
| Function called by the flow executer after finishing to flush out remaining data.   | |
| void | guiConfig () override | 
| ImGui config window which is shown on double click.   | |
| bool | onCreateLink (OutputPin &startPin, InputPin &endPin) override | 
| Called when a new link is to be established.   | |
| CsvLogger & | operator= (const CsvLogger &)=delete | 
| Copy assignment operator.   | |
| CsvLogger & | operator= (CsvLogger &&)=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.   | |
| ~CsvLogger () 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.   | |
| 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.   | |
| 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 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.   | |
| Public Member Functions inherited from NAV::FileWriter | |
| FileWriter (const FileWriter &)=delete | |
| Copy constructor.   | |
| FileWriter (FileWriter &&)=delete | |
| Move constructor.   | |
| FileWriter & | operator= (const FileWriter &)=delete | 
| Copy assignment operator.   | |
| FileWriter & | operator= (FileWriter &&)=delete | 
| Move assignment operator.   | |
| ~FileWriter ()=default | |
| Destructor.   | |
| Public Member Functions inherited from NAV::CommonLog | |
| CommonLog (CommonLog &&)=delete | |
| Move constructor.   | |
| CommonLog (const CommonLog &)=delete | |
| Copy constructor.   | |
| void | initialize () const | 
| Initialize the common log variables.   | |
| CommonLog & | operator= (CommonLog &&)=delete | 
| Move assignment operator.   | |
| CommonLog & | operator= (const CommonLog &)=delete | 
| Copy assignment operator.   | |
| virtual | ~CommonLog () | 
| 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.   | |
| Static Public Member Functions inherited from NAV::FileWriter | |
| static const char * | to_string (FileType type) | 
| Converts the provided type into string.   | |
| Static Public Member Functions inherited from NAV::CommonLog | |
| static LocalPosition | calcLocalPosition (const Eigen::Vector3d &lla_position) | 
| Calculate the local position offset from a reference point.   | |
| static double | calcTimeIntoRun (const InsTime &insTime) | 
| Calculates the relative time into he run.   | |
| static void | restore (const json &j) | 
| Read info from a json object.   | |
| static json | save () | 
| Returns a json object of the common log.   | |
| static bool | ShowOriginInput (const char *id) | 
| Shows a GUI to input a origin location.   | |
Private Member Functions | |
| void | deinitialize () override | 
| Deinitialize the node.   | |
| bool | initialize () override | 
| Initialize the node.   | |
| void | rewriteData (size_t oldSize, size_t newSize) | 
| Rewrites the data file with a new size.   | |
| void | writeHeader () | 
| Writes the header.   | |
| void | writeObservation (InputPin::NodeDataQueue &queue, size_t pinIdx) | 
| Write Observation to the file.   | |
Private Attributes | |
| std::vector< std::string > | _dynamicHeader | 
| Dynamic Header.   | |
| std::vector< std::pair< std::string, bool > > | _headerLogging | 
| Header which should be logged.   | |
| size_t | _headerLoggingCount | 
| Amount of headers which are logged.   | |
| bool | _headerLoggingDefault | 
| Default for new headers.   | |
| std::string | _headerLoggingRegex | 
| Regex to search for when selecting.   | |
| bool | _headerLoggingSortGui | 
| Sort headers in the GUI.   | |
| bool | _headerWritten | 
| Flag whether the header was written already.   | |
| std::string | _lastConnectedType | 
| Type last connected.   | |
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... | |
| Public Types inherited from NAV::FileWriter | |
| enum class | FileType : uint8_t {  NONE , BINARY , ASCII }  | 
| File Type.  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 Member Functions inherited from NAV::FileWriter | |
| void | deinitialize () | 
| Deinitialize the file reader.   | |
| FileWriter ()=default | |
| Default constructor.   | |
| std::filesystem::path | getFilepath () | 
| Returns the path of the file.   | |
| bool | guiConfig (const char *vFilters, const std::vector< std::string > &extensions, size_t id, const std::string &nameId) | 
| ImGui config.   | |
| bool | initialize () | 
| Initialize the file reader.   | |
| void | restore (const json &j) | 
| Restores the node from a json object.   | |
| json | save () const | 
| Saves the node into a json object.   | |
| Protected Member Functions inherited from NAV::CommonLog | |
| CommonLog () | |
| Default constructor.   | |
| 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.   | |
| Protected Attributes inherited from NAV::FileWriter | |
| std::ofstream | _filestream | 
| File stream to write the file.   | |
| FileType | _fileType | 
| File Type.   | |
| std::string | _path | 
| Path to the file.   | |
| Static Protected Attributes inherited from NAV::CommonLog | |
| static std::optional< gui::widgets::PositionWithFrame > | _originPosition | 
| Origin for calculation of relative position.   | |
| static InsTime | _startTime | 
| Start Time for calculation of relative time.   | |
| static bool | _useGuiInputs | 
| Use GUI inputs.   | |
Data Logger for PosVelAtt observations.
Definition at line 25 of file CsvLogger.hpp.
| NAV::CsvLogger::CsvLogger | ( | ) | 
Default constructor.
Definition at line 25 of file CsvLogger.cpp.
      
  | 
  override | 
Destructor.
Definition at line 40 of file CsvLogger.cpp.
      
  | 
  delete | 
Copy constructor.
      
  | 
  delete | 
Move constructor.
      
  | 
  staticnodiscard | 
String representation of the Class Category.
Definition at line 55 of file CsvLogger.cpp.
      
  | 
  overrideprivatevirtual | 
      
  | 
  overridevirtual | 
Function called by the flow executer after finishing to flush out remaining data.
Reimplemented from NAV::Node.
Definition at line 214 of file CsvLogger.cpp.
      
  | 
  overridevirtual | 
ImGui config window which is shown on double click.
Reimplemented from NAV::Node.
Definition at line 60 of file CsvLogger.cpp.
      
  | 
  overrideprivatevirtual | 
Called when a new link is to be established.
Reimplemented from NAV::Node.
Definition at line 219 of file CsvLogger.cpp.
      
  | 
  overridevirtual | 
Restores the node from a json object.
| [in] | j | Json object with the node state | 
Reimplemented from NAV::Node.
Definition at line 203 of file CsvLogger.cpp.
      
  | 
  private | 
Rewrites the data file with a new size.
| [in] | oldSize | Old dynamic size | 
| [in] | newSize | New dynamic size | 
Definition at line 286 of file CsvLogger.cpp.
      
  | 
  nodiscardoverridevirtual | 
Saves the node into a json object.
Reimplemented from NAV::Node.
Definition at line 189 of file CsvLogger.cpp.
      
  | 
  nodiscardoverridevirtual | 
String representation of the Class Type.
Implements NAV::Node.
Definition at line 50 of file CsvLogger.cpp.
      
  | 
  staticnodiscard | 
String representation of the Class Type.
Definition at line 45 of file CsvLogger.cpp.
      
  | 
  private | 
Writes the header.
Definition at line 257 of file CsvLogger.cpp.
      
  | 
  private | 
Write Observation to the file.
| [in] | queue | Queue with all the received data messages | 
| [in] | pinIdx | Index of the pin the data is received on | 
Definition at line 311 of file CsvLogger.cpp.
      
  | 
  private | 
Dynamic Header.
Definition at line 97 of file CsvLogger.hpp.
      
  | 
  private | 
Header which should be logged.
Definition at line 100 of file CsvLogger.hpp.
      
  | 
  private | 
Amount of headers which are logged.
Definition at line 102 of file CsvLogger.hpp.
      
  | 
  private | 
Default for new headers.
Definition at line 106 of file CsvLogger.hpp.
      
  | 
  private | 
Regex to search for when selecting.
Definition at line 104 of file CsvLogger.hpp.
      
  | 
  private | 
Sort headers in the GUI.
Definition at line 108 of file CsvLogger.hpp.
      
  | 
  private | 
Flag whether the header was written already.
Definition at line 94 of file CsvLogger.hpp.
      
  | 
  private | 
Type last connected.
Definition at line 91 of file CsvLogger.hpp.