Go to the documentation of this file.
14 reboot_needed_(false),
15 ref_sbg_com_handle_(ref_sbg_com_handle)
28 ROS_WARN(
"SBG_DRIVER - [Config] Configuration %s is not available for the connected device.", ref_conf_title.c_str());
32 std::string error_message(
"[Config] Unable to get the ");
33 error_message.append(ref_conf_title);
34 error_message.append(
" configuration : ");
45 ROS_WARN(
"SBG_DRIVER - [Config] Configuration %s is not available for the connected device.", ref_conf_title.c_str());
49 std::string error_message(
"[Config] Unable to set the ");
50 error_message.append(ref_conf_title);
51 error_message.append(
" configuration : ");
58 ROS_INFO(
"SBG_DRIVER - [Config] %s updated on the device.", ref_conf_title.c_str());
76 if ((init_condition.
year != ref_init_condition.
year)
77 || (init_condition.
month != ref_init_condition.
month)
78 || (init_condition.
day != ref_init_condition.
day)
102 if (motion_profile.
id != ref_motion_profile.
id)
118 float level_arms_device[3];
126 if ((level_arms_vector != ref_level_arms)
176 if (model_info.
id != ref_mag_model.
id)
218 if (model_info.
id != ref_gnss_model.
id)
248 if ((gnss_device_primary != gnss_config_primary)
249 || (gnss_device_secondary != gnss_config_secondary)
272 if ((rejection.
hdt != ref_gnss_rejection.
hdt)
320 if (lever_arm_device != odometer_level_arms)
362 ROS_WARN(
"SBG_DRIVER - [Config] Output is not available for this device : Class [%d] - Id [%d]", ref_log_output.
message_class, ref_log_output.
message_id);
366 std::string error_message(
"[Config] Unable to get output for the device : Class [");
367 error_message.append(std::to_string(ref_log_output.
message_class));
368 error_message.append(
"] - Id [");
369 error_message.append(std::to_string(ref_log_output.
message_id));
370 error_message.append(
"] : ");
375 else if (current_output_mode != ref_log_output.
output_mode)
381 std::string error_message(
"[Config] Unable to set the output configuration : Class[");
382 error_message.append(std::to_string(ref_log_output.
message_class));
383 error_message.append(
"] - Id [");
384 error_message.append(std::to_string(ref_log_output.
message_id));
385 error_message.append(
"] : ");
426 const std::vector<ConfigStore::SbgLogOutput>& ref_output_modes = ref_config_store.
getOutputModes();
454 ROS_INFO(
"SBG_DRIVER - Settings saved and device rebooted.");
void configureOdometerLevelArm(const SbgVector3< float > &odometer_level_arms)
void checkConfigurationApplied(const SbgErrorCode &ref_sbg_error_code, const std::string &ref_conf_title)
SbgEComRejectionMode velocity
bool areEquals(T firstValue, T secondValue)
const SbgEComGnssInstallation & getGnssInstallation() const
void configureAidingAssignement(const SbgEComAidingAssignConf &ref_aiding_assign)
SbgEComGnssInstallationMode leverArmSecondaryMode
void configureImuAlignement(const SbgEComSensorAlignmentInfo &ref_sensor_align, const SbgVector3< float > &ref_level_arms)
static const char * sbgErrorCodeToString(SbgErrorCode errorCode)
SbgErrorCode sbgEComCmdMagGetModelInfo(SbgEComHandle *pHandle, SbgEComModelInfo *pModelInfo)
SbgEComAxisDirection axisDirectionX
void configureMagRejection(const SbgEComMagRejectionConf &ref_mag_rejection)
SbgEComAxisDirection axisDirectionY
const SbgEComGnssRejectionConf & getGnssRejection() const
const SbgVector3< float > & getSensorLevelArms() const
SbgErrorCode sbgEComCmdOutputGetConf(SbgEComHandle *pHandle, SbgEComOutputPort outputPort, SbgEComClass classId, SbgEComMsgId msgId, SbgEComOutputMode *pConf)
enum _SbgEComOutputMode SbgEComOutputMode
SbgErrorCode sbgEComCmdOutputSetConf(SbgEComHandle *pHandle, SbgEComOutputPort outputPort, SbgEComClass classId, SbgEComMsgId msgId, SbgEComOutputMode conf)
SbgErrorCode sbgEComCmdSensorSetAlignmentAndLeverArm(SbgEComHandle *pHandle, const SbgEComSensorAlignmentInfo *pAlignConf, const float leverArm[3])
SbgEComOutputMode output_mode
SbgErrorCode sbgEComCmdOdoGetLeverArm(SbgEComHandle *pHandle, float leverArm[3])
void configureMotionProfile(const SbgEComModelInfo &ref_motion_profile)
SbgEComHandle & ref_sbg_com_handle_
SbgEComRejectionMode magneticField
SbgErrorCode sbgEComCmdOdoSetLeverArm(SbgEComHandle *pHandle, const float leverArm[3])
const SbgEComModelInfo & getMotionProfile() const
const SbgEComModelInfo & getGnssModel() const
SbgEComOutputPort getOutputPort() const
SbgErrorCode sbgEComCmdOdoSetConf(SbgEComHandle *pHandle, const SbgEComOdoConf *pOdometerConf)
const SbgEComMagRejectionConf & getMagnetometerRejection() const
SbgErrorCode sbgEComCmdGnss1SetModelId(SbgEComHandle *pHandle, uint32_t id)
void configureOdometerRejection(const SbgEComOdoRejectionConf &ref_odometer_rejection)
SbgErrorCode sbgEComCmdSensorSetAidingAssignment(SbgEComHandle *pHandle, const SbgEComAidingAssignConf *pConf)
SbgEComModulePortAssignment rtcmPort
const SbgEComOdoConf & getOdometerConf() const
SbgEComRejectionMode velocity
SbgEComModulePortAssignment gps1Port
float leverArmSecondary[3]
SbgErrorCode sbgEComCmdMagSetRejection(SbgEComHandle *pHandle, const SbgEComMagRejectionConf *pRejectConf)
const SbgEComOdoRejectionConf & getOdometerRejection() const
void configureGnssModel(const SbgEComModelInfo &ref_gnss_model)
enum _SbgEComOutputPort SbgEComOutputPort
This file implements SbgECom commands related to outputs.
SbgErrorCode sbgEComCmdMagSetModelId(SbgEComHandle *pHandle, uint32_t id)
SbgErrorCode sbgEComCmdOdoGetConf(SbgEComHandle *pHandle, SbgEComOdoConf *pOdometerConf)
SbgErrorCode sbgEComCmdMagGetRejection(SbgEComHandle *pHandle, SbgEComMagRejectionConf *pRejectConf)
SbgErrorCode sbgEComCmdOdoGetRejection(SbgEComHandle *pHandle, SbgEComOdoRejectionConf *pRejectConf)
const SbgEComAidingAssignConf & getAidingAssignement() const
const SbgEComSensorAlignmentInfo & getSensorAlignement() const
SbgErrorCode sbgEComCmdGnss1InstallationGet(SbgEComHandle *pHandle, SbgEComGnssInstallation *pGnssInstallation)
SbgErrorCode sbgEComCmdSensorSetInitCondition(SbgEComHandle *pHandle, const SbgEComInitConditionConf *pConf)
SbgEComOdometerPinAssignment odometerPinsConf
void applyConfiguration(const ConfigStore &ref_config_store)
SbgErrorCode sbgEComCmdOdoSetRejection(SbgEComHandle *pHandle, const SbgEComOdoRejectionConf *pRejectConf)
bool leverArmPrimaryPrecise
const std::vector< SbgLogOutput > & getOutputModes() const
const SbgEComInitConditionConf & getInitialConditions() const
SbgErrorCode sbgEComCmdSettingsAction(SbgEComHandle *pHandle, SbgEComSettingsAction action)
SbgErrorCode sbgEComCmdSensorGetInitCondition(SbgEComHandle *pHandle, SbgEComInitConditionConf *pConf)
Apply configuration to the device.
SbgErrorCode sbgEComCmdGnss1GetModelInfo(SbgEComHandle *pHandle, SbgEComModelInfo *pModelInfo)
void checkConfigurationGet(const SbgErrorCode &ref_sbg_error_code, const std::string &ref_conf_title) const
SbgErrorCode sbgEComCmdGnss1GetRejection(SbgEComHandle *pHandle, SbgEComGnssRejectionConf *pRejectConf)
SbgEComModuleSyncAssignment gps1Sync
SbgErrorCode sbgEComCmdSensorGetAidingAssignment(SbgEComHandle *pHandle, SbgEComAidingAssignConf *pConf)
enum _SbgErrorCode SbgErrorCode
Header file that defines all error codes for SBG Systems libraries.
void configureMagModel(const SbgEComModelInfo &ref_mag_model)
void configureOdometer(const SbgEComOdoConf &ref_odometer)
SbgEComRejectionMode position
const SbgVector3< float > & getOdometerLevelArms() const
SbgErrorCode sbgEComCmdSensorGetMotionProfileInfo(SbgEComHandle *pHandle, SbgEComModelInfo *pModelInfo)
const SbgEComModelInfo & getMagnetometerModel() const
SbgErrorCode sbgEComCmdSensorSetMotionProfileId(SbgEComHandle *pHandle, uint32_t id)
void configureGnssRejection(const SbgEComGnssRejectionConf &ref_gnss_rejection)
void configureGnssInstallation(const SbgEComGnssInstallation &ref_gnss_installation)
SbgErrorCode sbgEComCmdGnss1InstallationSet(SbgEComHandle *pHandle, const SbgEComGnssInstallation *pGnssInstallation)
SbgErrorCode sbgEComCmdGnss1SetRejection(SbgEComHandle *pHandle, const SbgEComGnssRejectionConf *pRejectConf)
SbgErrorCode sbgEComCmdSensorGetAlignmentAndLeverArm(SbgEComHandle *pHandle, SbgEComSensorAlignmentInfo *pAlignConf, float leverArm[3])
void configureInitCondition(const SbgEComInitConditionConf &ref_init_condition)
void configureOutput(SbgEComOutputPort output_port, const ConfigStore::SbgLogOutput &ref_log_output)
SbgEComClass message_class
sbg_driver
Author(s): SBG Systems
autogenerated on Fri Oct 11 2024 02:13:40