32 #ifndef INDUSTRIAL_ROBOT_CLIENT_UTILS_H_ 33 #define INDUSTRIAL_ROBOT_CLIENT_UTILS_H_ 59 bool isWithinRange(
const std::vector<double> & lhs,
const std::vector<double> & rhs,
72 bool mapInsert(
const std::string & key,
double value, std::map<std::string, double> & mappings);
86 bool toMap(
const std::vector<std::string> & keys,
const std::vector<double> &
values,
87 std::map<std::string, double> & mappings);
100 bool isWithinRange(
const std::vector<std::string> & keys,
const std::map<std::string, double> & lhs,
101 const std::map<std::string, double> & rhs,
double full_range);
115 bool isWithinRange(
const std::vector<std::string> & lhs_keys,
const std::vector<double> & lhs_values,
116 const std::vector<std::string> & rhs_keys,
const std::vector<double> & rhs_values,
std::vector< double > values
bool mapInsert(const std::string &key, double value, std::map< std::string, double > &mappings)
Convenience function for inserting a value into an std::map, assuming a string key and a double value...
bool toMap(const std::vector< std::string > &keys, const std::vector< double > &values, std::map< std::string, double > &mappings)
Convenience function for taking two separate key,value vectors and creating the more convenient map...
bool isWithinRange(const std::vector< double > &lhs, const std::vector< double > &rhs, double full_range)
Checks to see if members are within the same range. Specifically, Each item in abs(lhs[i] - rhs[i]) <...