12 #include <eigen3/Eigen/Core> 16 namespace configuration
bool hasForceTorqueOffset() const
Checks if the value of the forceTorqueOffset_ variable has been set by the user in the configuration ...
bool hasImuAccelerationRange() const
Checks if the value of the imuAccelerationRange_ variable has been set by the user in the configurati...
void setUseCustomCalibration(const bool useCustomCalibration)
Sets the useCustomCalibration variable.
Class holding the force-torque filter settings.
bool hasSetReadingToNanOnDisconnect() const
Checks if the value of the setReadingToNanOnDisconnect_ variable has been set by the user in the conf...
bool getSetReadingToNanOnDisconnect() const
Gets the setReadingToNanOnDisconnect variable.
Eigen::Matrix< double, 6, 1 > forceTorqueOffset_
The forceTorqueOffset variable.
std::recursive_mutex mutex_
Mutex for synchronized access on the object's private variables.
bool hasForceTorqueFilter() const
Checks if the value of the forceTorqueFilter_ variable has been set by the user in the configuration ...
bool hasSensorCalibration() const
Checks if the value of the sensorCalibration_ variable has been set by the user in the configuration ...
Class holding the configuration of the sensor.
Configuration()=default
Default constructor.
bool hasForceTorqueOffset_
Flag indicating if forceTorqueOffset_ is set.
bool hasImuAngularRateFilter_
Flag indicating if imuAngularRateFilter_ is set.
SensorConfiguration sensorConfiguration_
The sensorConfiguration variable.
const ForceTorqueFilter & getForceTorqueFilter() const
Gets the forceTorqueFilter variable.
bool hasSensorConfiguration_
Flag indicating if sensorConfiguration_ is set.
bool hasUseCustomCalibration_
Flag indicating if useCustomCalibration_ is set.
void setImuAccelerationRange(const uint8_t imuAccelerationRange)
Sets the imuAccelerationRange variable.
void setImuAngularRateRange(const uint8_t imuAngularRateRange)
Sets the imuAngularRateRange variable.
bool hasImuAngularRateFilter() const
Checks if the value of the imuAngularRateFilter_ variable has been set by the user in the configurati...
bool hasImuAccelerationRange_
Flag indicating if imuAccelerationRange_ is set.
void setSensorConfiguration(const SensorConfiguration &sensorConfiguration)
Sets the sensorConfiguration variable.
bool hasSensorConfiguration() const
Checks if the value of the sensorConfiguration_ variable has been set by the user in the configuratio...
const Eigen::Matrix< double, 6, 1 > & getForceTorqueOffset() const
Gets the forceTorqueOffset variable.
bool hasImuAngularRateRange() const
Checks if the value of the imuAngularRateRange_ variable has been set by the user in the configuratio...
unsigned int imuAngularRateFilter_
The imuAngularRateFilter variable.
bool getUseCustomCalibration() const
Gets the useCustomCalibration variable.
bool hasSetReadingToNanOnDisconnect_
Flag indicating if setReadingToNanOnDisconnect_ is set.
bool getSaveConfiguration() const
Gets the saveConfiguration variable.
calibration::SensorCalibration sensorCalibration_
The sensorCalibration variable.
unsigned int getImuAngularRateFilter() const
Gets the imuAccelerationFilter variable.
Class holding the sensor configuration settings.
bool hasSaveConfiguration() const
Checks if the value of the saveConfiguration_ variable has been set by the user in the configuration ...
bool saveConfiguration_
The saveConfiguration_ variable.
bool hasImuAccelerationFilter_
Flag indicating if imuAccelerationFilter_ is set.
The SensorCalibration class is used for holding the calibration information of each rokubi mini senso...
bool hasImuAngularRateRange_
Flag indicating if imuAngularRateRange_ is set.
bool hasUseCustomCalibration() const
Checks if the value of the useCustomCalibration_ variable has been set by the user in the configurati...
uint8_t getImuAccelerationRange() const
Gets the imuAccelerationRange variable.
void setForceTorqueFilter(const ForceTorqueFilter &forceTorqueFilter)
Sets the forceTorqueFilter variable.
bool hasSaveConfiguration_
Flag indicating if saveConfiguration_ is set.
void load(const std::string &key, NodeHandlePtr nh)
Loads the configuration from the parameter server.
void setImuAccelerationFilter(const unsigned int imuAccelerationFilter)
Sets the imuAccelerationFilter variable.
void setSetReadingToNanOnDisconnect(const bool setReadingToNanOnDisconnect)
Sets the setReadingToNanOnDisconnect variable.
const calibration::SensorCalibration & getSensorCalibration() const
Gets the sensorCalibration variable.
unsigned int getImuAccelerationFilter() const
uint8_t getImuAngularRateRange() const
Gets the imuAngularRateRange variable.
unsigned int imuAccelerationRange_
The imuAccelerationRange variable.
bool setReadingToNanOnDisconnect_
The setReadingToNanOnDisconnect variable.
bool hasForceTorqueFilter_
Flag indicating if forceTorqueFilter_ is set.
ForceTorqueFilter forceTorqueFilter_
The forceTorqueFilter variable.
void printConfiguration() const
Prints the existing Configuration.
void setSensorCalibration(const calibration::SensorCalibration &sensorCalibration)
Sets the sensorCalibration variable.
unsigned int imuAccelerationFilter_
The imuAccelerationFilter variable.
unsigned int imuAngularRateRange_
The imuAngularRateRange variable.
bool useCustomCalibration_
The useCustomCalibration variable.
bool hasImuAccelerationFilter() const
Checks if the value of the imuAccelerationFilter_ variable has been set by the user in the configurat...
void setForceTorqueOffset(const Eigen::Matrix< double, 6, 1 > &forceTorqueOffset)
Sets the forceTorqueOffset variable.
void setSaveConfiguration(const bool saveConfiguration)
Sets the saveConfiguration variable.
bool hasSensorCalibration_
Flag indicating if sensorCalibration_ is set.
Configuration & operator=(const Configuration &other)
Assignment operator for Configuration.
void setImuAngularRateFilter(const unsigned int imuAngularRateFilter)
Sets the imuAngularRateFilter variable.
const SensorConfiguration & getSensorConfiguration() const
Gets the sensorConfiguration variable.
std::shared_ptr< ros::NodeHandle > NodeHandlePtr
virtual ~Configuration()=default