Namespaces | Functions
utils.cpp File Reference
#include "ros/console.h"
#include "industrial_utils/utils.h"
#include "industrial_robot_client/utils.h"
#include <cmath>
#include <iostream>
Include dependency graph for utils.cpp:

Go to the source code of this file.

Namespaces

namespace  industrial_robot_client
namespace  industrial_robot_client::utils

Functions

bool industrial_robot_client::utils::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]) < abs(range/2.0). Empty vectors always return true. The behavior of this function around large values (near double limits) is uncertain. This function is not optimized, do not use for large vectors or loops.
bool industrial_robot_client::utils::isWithinRange (const std::vector< std::string > &keys, const std::map< std::string, double > &lhs, const std::map< std::string, double > &rhs, double full_range)
 Map version of.
bool industrial_robot_client::utils::isWithinRange (const std::vector< std::string > &lhs_keys, const std::vector< double > &lhs_values, const std::vector< std::string > &rhs_keys, const std::vector< double > &rhs_values, double full_range)
 Key/Values vector version of.
bool industrial_robot_client::utils::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 industrial_robot_client::utils::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. This is helpful for some ROS message types where maps are defined as two separate vectors (ROS messages do not support maps).


industrial_robot_client
Author(s): Jeremy Zoss
autogenerated on Mon Oct 6 2014 00:55:19