19 #ifndef ROBOT_CALIBRATION_CERES_CALIBRATION_DATA_HELPERS_H 20 #define ROBOT_CALIBRATION_CERES_CALIBRATION_DATA_HELPERS_H 22 #include <robot_calibration_msgs/CalibrationData.h> 31 const robot_calibration_msgs::CalibrationData& msg,
32 const std::string& sensor)
34 for (
size_t i = 0; i < msg.observations.size(); i++)
36 if (msg.observations[i].sensor_name == sensor)
48 const robot_calibration_msgs::CalibrationData& msg,
49 const std::string& sensor)
56 #endif // ROBOT_CALIBRATION_CERES_CALIBRATION_DATA_HELPERS_H int getSensorIndex(const robot_calibration_msgs::CalibrationData &msg, const std::string &sensor)
Determine which observation index corresponds to a particular sensor name.
Calibration code lives under this namespace.
bool hasSensor(const robot_calibration_msgs::CalibrationData &msg, const std::string &sensor)
Determine if a sample of data has an observation from the desired sensor.