Template Function fuse_models::common::getDimensionIndices

Function Documentation

template<typename T>
std::vector<size_t> fuse_models::common::getDimensionIndices(const std::vector<std::string> &dimension_names)

Utility method to convert a vector of dimension names to a vector of dimension indices.

Note that the dimensions are sorted, and so the order in which the user specifies them will have no bearing when the measurement vectors and covariances are actually built elsewhere.

Parameters:

dimension_names[in] - The dimension names to convert

Throws:

runtime_error – if any dimension name is invalid

Returns:

a vector of indices that are consistent with the enumerations for that variable type