Class ComponentInterface

Inheritance Relationships

Derived Types

Class Documentation

class ComponentInterface

This interface is used to add functionality to the main node.

This interface is generic and can be implemented for other features besides the main node, hardware versions, and firmware versions.

Subclassed by ublox_node::AdrUdrProduct, ublox_node::FtsProduct, ublox_node::HpgRefProduct, ublox_node::HpgRovProduct, ublox_node::RawDataProduct, ublox_node::TimProduct, ublox_node::UbloxFirmware

Public Functions

virtual void getRosParams() = 0

Get the ROS parameters.

Throws:

std::runtime_error – if a parameter is invalid or required parameters are not set.

virtual bool configureUblox(std::shared_ptr<ublox_gps::Gps> gps) = 0

Configure the U-Blox settings.

Returns:

true if configured correctly, false otherwise

virtual void initializeRosDiagnostics() = 0

Initialize the diagnostics.

Function may be empty.

virtual void subscribe(std::shared_ptr<ublox_gps::Gps> gps) = 0

Subscribe to u-blox messages and publish to ROS topics.