#include <config_store.h>
Classes | |
struct | SbgLogOutput |
Private Member Functions | |
template<typename T > | |
T | getParameter (const ros::NodeHandle &ref_node_handle, std::string param_key, int default_value) const |
void | loadAidingAssignementParameters (const ros::NodeHandle &ref_node_handle) |
void | loadCommunicationParameters (const ros::NodeHandle &ref_node_handle) |
void | loadGnssParameters (const ros::NodeHandle &ref_node_handle) |
void | loadImuAlignementParameters (const ros::NodeHandle &ref_node_handle) |
void | loadMagnetometersParameters (const ros::NodeHandle &ref_node_handle) |
void | loadOdometerParameters (const ros::NodeHandle &ref_node_handle) |
void | loadOutputConfiguration (const ros::NodeHandle &ref_node_handle, const std::string &ref_key, SbgEComClass sbg_msg_class, SbgEComMsgId sbg_msg_id) |
void | loadSensorParameters (const ros::NodeHandle &ref_node_handle) |
Class to handle the device configuration.
Definition at line 51 of file config_store.h.
ConfigStore::ConfigStore | ( | void | ) |
Default constructor.
Class to handle the device configuration.
Definition at line 13 of file config_store.cpp.
bool ConfigStore::checkConfigWithRos | ( | void | ) | const |
Check if the configuration should be done with ROS.
Definition at line 150 of file config_store.cpp.
bool ConfigStore::checkRosStandardMessages | ( | void | ) | const |
Check if the ROS standard outputs are defined.
Definition at line 275 of file config_store.cpp.
const SbgEComAidingAssignConf & ConfigStore::getAidingAssignement | ( | void | ) | const |
Get the aiding assignement configuration.
Definition at line 215 of file config_store.cpp.
uint32_t ConfigStore::getBaudRate | ( | void | ) | const |
Get the UART baudrate communication.
Definition at line 165 of file config_store.cpp.
const SbgEComGnssInstallation & ConfigStore::getGnssInstallation | ( | void | ) | const |
Get the Gnss installation configuration.
Definition at line 245 of file config_store.cpp.
const SbgEComModelInfo & ConfigStore::getGnssModel | ( | void | ) | const |
Get the Gnss model configuration.
Definition at line 240 of file config_store.cpp.
const SbgEComGnssRejectionConf & ConfigStore::getGnssRejection | ( | void | ) | const |
Get the Gnss rejection configuration.
Definition at line 250 of file config_store.cpp.
const SbgEComInitConditionConf & ConfigStore::getInitialConditions | ( | void | ) | const |
Get the initial conditions configuration.
Definition at line 195 of file config_store.cpp.
uint32_t ConfigStore::getInputPortAddress | ( | void | ) | const |
sbgIpAddress ConfigStore::getIpAddress | ( | void | ) | const |
Get the Ip address of the interface.
Definition at line 180 of file config_store.cpp.
const SbgEComMagCalibBandwidth & ConfigStore::getMagnetometerCalibBandwidth | ( | void | ) | const |
Get the magnetometer calibration bandwidth.
Definition at line 235 of file config_store.cpp.
const SbgEComMagCalibMode & ConfigStore::getMagnetometerCalibMode | ( | void | ) | const |
Get the magnetometer calibration mode.
Definition at line 230 of file config_store.cpp.
const SbgEComModelInfo & ConfigStore::getMagnetometerModel | ( | void | ) | const |
Get the magnetometer model configuration.
Definition at line 220 of file config_store.cpp.
const SbgEComMagRejectionConf & ConfigStore::getMagnetometerRejection | ( | void | ) | const |
Get the magnetometer rejection configuration.
Definition at line 225 of file config_store.cpp.
const SbgEComModelInfo & ConfigStore::getMotionProfile | ( | void | ) | const |
Get the motion profile configuration.
Definition at line 200 of file config_store.cpp.
const SbgEComOdoConf & ConfigStore::getOdometerConf | ( | void | ) | const |
Get the odometer configuration.
Definition at line 255 of file config_store.cpp.
const sbg::SbgVector3< float > & ConfigStore::getOdometerLevelArms | ( | void | ) | const |
Get the odometer level arms.
Definition at line 260 of file config_store.cpp.
const SbgEComOdoRejectionConf & ConfigStore::getOdometerRejection | ( | void | ) | const |
Get the odometer rejection.
Definition at line 265 of file config_store.cpp.
const std::vector< ConfigStore::SbgLogOutput > & ConfigStore::getOutputModes | ( | void | ) | const |
Get all the output modes.
Definition at line 270 of file config_store.cpp.
SbgEComOutputPort ConfigStore::getOutputPort | ( | void | ) | const |
Get the output port of the device.
Definition at line 170 of file config_store.cpp.
uint32_t ConfigStore::getOutputPortAddress | ( | void | ) | const |
|
inlineprivate |
Get the ROS integer parameter casted in the T type. This function has the same behavior as the param base function, however it enables an implicit cast, and the use of const NodeHandle.
T Template type to cast the ROS param to.
[in] | ref_node_handle | ROS NodeHandle. |
[in] | param_key | Parameter key. |
[in] | default_value | Default value for the parameter. |
Definition at line 119 of file config_store.h.
uint32_t ConfigStore::getReadingRateFrequency | ( | void | ) | const |
Get the reading frequency defined in settings. If this frequency is null, the driver will automatically configure the max output frequency according to the outputs.
Definition at line 280 of file config_store.cpp.
const SbgEComSensorAlignmentInfo & ConfigStore::getSensorAlignement | ( | void | ) | const |
Get the sensor alignement configuration.
Definition at line 205 of file config_store.cpp.
const sbg::SbgVector3< float > & ConfigStore::getSensorLevelArms | ( | void | ) | const |
Get the sensor level arms.
Definition at line 210 of file config_store.cpp.
const std::string & ConfigStore::getUartPortName | ( | void | ) | const |
Get the UART port name.
Definition at line 160 of file config_store.cpp.
bool ConfigStore::isInterfaceSerial | ( | void | ) | const |
Check if the interface configuration is a serial interface.
Definition at line 155 of file config_store.cpp.
bool ConfigStore::isInterfaceUdp | ( | void | ) | const |
Check if the interface configuration is a UDP interface.
Definition at line 175 of file config_store.cpp.
|
private |
Load aiding assignement parameters.
[in] | ref_node_handle | ROS nodeHandle. |
Definition at line 84 of file config_store.cpp.
|
private |
Load interface communication parameters.
[in] | ref_node_handle | ROS nodeHandle. |
Definition at line 26 of file config_store.cpp.
void ConfigStore::loadFromRosNodeHandle | ( | const ros::NodeHandle & | ref_node_handle | ) |
Load the configuration from a ros parameter handle.
[in] | ref_node_handle | ROS nodeHandle. |
Definition at line 289 of file config_store.cpp.
|
private |
Load Gnss parameters.
[in] | ref_node_handle | ROS nodeHandle. |
Definition at line 101 of file config_store.cpp.
|
private |
Load IMU alignement parameters.
[in] | ref_node_handle | ROS nodeHandle. |
Definition at line 67 of file config_store.cpp.
|
private |
Load magnetometers parameters.
[in] | ref_node_handle | ROS nodeHandle. |
Definition at line 92 of file config_store.cpp.
|
private |
Load odometer parameters.
[in] | ref_node_handle | ROS nodeHandle. |
Definition at line 119 of file config_store.cpp.
|
private |
Load the output configuration.
[in] | ref_node_handle | ROS nodeHandle. |
[in] | ref_key | String key for the output config. |
[in] | sbg_msg_class | SBG message class. |
[in] | sbg_msg_id | ID of the SBG log. |
Definition at line 135 of file config_store.cpp.
|
private |
Load sensor parameters.
[in] | ref_node_handle | ROS nodeHandle. |
Definition at line 54 of file config_store.cpp.
|
private |
Definition at line 85 of file config_store.h.
|
private |
Definition at line 77 of file config_store.h.
|
private |
Definition at line 93 of file config_store.h.
|
private |
Definition at line 92 of file config_store.h.
|
private |
Definition at line 94 of file config_store.h.
|
private |
Definition at line 74 of file config_store.h.
|
private |
Definition at line 79 of file config_store.h.
|
private |
Definition at line 90 of file config_store.h.
|
private |
Definition at line 89 of file config_store.h.
|
private |
Definition at line 87 of file config_store.h.
|
private |
Definition at line 88 of file config_store.h.
|
private |
Definition at line 80 of file config_store.h.
|
private |
Definition at line 96 of file config_store.h.
|
private |
Definition at line 97 of file config_store.h.
|
private |
Definition at line 98 of file config_store.h.
|
private |
Definition at line 73 of file config_store.h.
|
private |
Definition at line 100 of file config_store.h.
|
private |
Definition at line 68 of file config_store.h.
|
private |
Definition at line 102 of file config_store.h.
|
private |
Definition at line 101 of file config_store.h.
|
private |
Definition at line 72 of file config_store.h.
|
private |
Definition at line 82 of file config_store.h.
|
private |
Definition at line 83 of file config_store.h.
|
private |
Definition at line 70 of file config_store.h.
|
private |
Definition at line 69 of file config_store.h.
|
private |
Definition at line 67 of file config_store.h.
|
private |
Definition at line 75 of file config_store.h.