Class LocalizerMethodBase

Inheritance Relationships

Base Type

Class Documentation

class LocalizerMethodBase : public easynav::MethodBase

Abstract base class for localization methods in Easy Navigation.

This class defines the interface for localization algorithm implementations. Derived classes must implement the update methods.

Public Functions

LocalizerMethodBase() = default

Default constructor.

virtual ~LocalizerMethodBase() = default

Virtual destructor.

bool internal_update_rt(NavState &nav_state, bool trigger = false)

Helper to run the real-time update if appropriate.

Parameters:
  • nav_state – The current state of the navigation system.

  • trigger – Force execution regardless of timing.

Returns:

True if update_rt() was called, false otherwise.

void internal_update(NavState &nav_state)

Helper to run the non-real-time update if appropriate.

Parameters:

nav_state – The current state of the navigation system.

Protected Functions

virtual void update_rt(NavState &nav_state) = 0

Run the real-time localization update.

Parameters:

nav_state – The current state of the navigation system.

virtual void update(NavState &nav_state) = 0

Run the non-real-time localization update.

Parameters:

nav_state – The current state of the navigation system.