Common logging variables like time into run and local positions.
More...
|
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.
|
|
size_t | _index |
| Index which common log node this is.
|
|
static std::mutex | _mutex |
| Mutex to lock before writing.
|
static std::vector< bool > | _wantsInit |
| Vector on which nodes want to initialize.
|
Common logging variables like time into run and local positions.
Definition at line 30 of file CommonLog.hpp.
◆ ~CommonLog()
NAV::CommonLog::~CommonLog |
( |
| ) |
|
|
virtual |
◆ CommonLog() [1/3]
NAV::CommonLog::CommonLog |
( |
const CommonLog & | | ) |
|
|
delete |
◆ CommonLog() [2/3]
◆ CommonLog() [3/3]
NAV::CommonLog::CommonLog |
( |
| ) |
|
|
protected |
◆ calcLocalPosition()
Calculate the local position offset from a reference point.
- Parameters
-
[in] | lla_position | [𝜙, λ, h] Latitude, Longitude, Altitude in [rad, rad, m] |
- Returns
- Local positions in north/south and east/west directions in [m]
Definition at line 81 of file CommonLog.cpp.
◆ calcTimeIntoRun()
double NAV::CommonLog::calcTimeIntoRun |
( |
const InsTime & | insTime | ) |
|
|
static |
Calculates the relative time into he run.
- Parameters
-
- Returns
- Relative
Definition at line 70 of file CommonLog.cpp.
◆ initialize()
void NAV::CommonLog::initialize |
( |
| ) |
const |
Initialize the common log variables.
Definition at line 51 of file CommonLog.cpp.
◆ operator=() [1/2]
Move assignment operator.
◆ operator=() [2/2]
Copy assignment operator.
◆ restore()
void NAV::CommonLog::restore |
( |
const json & | j | ) |
|
|
static |
Read info from a json object.
- Parameters
-
[in] | j | Json variable to read info from |
Definition at line 30 of file CommonLog.cpp.
◆ save()
json NAV::CommonLog::save |
( |
| ) |
|
|
staticnodiscard |
Returns a json object of the common log.
Definition at line 21 of file CommonLog.cpp.
◆ ShowOriginInput()
bool NAV::CommonLog::ShowOriginInput |
( |
const char * | id | ) |
|
|
static |
Shows a GUI to input a origin location.
- Parameters
-
[in] | id | Unique id for ImGui |
- Returns
- True if something was changed
Definition at line 115 of file CommonLog.cpp.
◆ _index
size_t NAV::CommonLog::_index |
|
private |
Index which common log node this is.
Definition at line 92 of file CommonLog.hpp.
◆ _mutex
std::mutex NAV::CommonLog::_mutex |
|
inlinestaticprivate |
◆ _originPosition
Origin for calculation of relative position.
Definition at line 82 of file CommonLog.hpp.
◆ _startTime
Start Time for calculation of relative time.
Definition at line 80 of file CommonLog.hpp.
◆ _useGuiInputs
bool NAV::CommonLog::_useGuiInputs |
|
inlinestaticprotected |
◆ _wantsInit
std::vector<bool> NAV::CommonLog::_wantsInit |
|
inlinestaticprivate |
Vector on which nodes want to initialize.
Definition at line 90 of file CommonLog.hpp.
The documentation for this class was generated from the following files:
- /home/runner/work/INSTINCT/INSTINCT/src/util/Logger/CommonLog.hpp
- /home/runner/work/INSTINCT/INSTINCT/src/util/Logger/CommonLog.cpp