![]()  | 
  
    Flexiv RDK APIs
    1.8.0
    
   | 
 


Go to the source code of this file.
Functions | |
| std::array< double, 3 > | flexiv::rdk::utility::Quat2EulerZYX (const std::array< double, 4 > &quat) | 
| Convert quaternion to Euler angles with ZYX axis rotations.  More... | |
| double | flexiv::rdk::utility::Rad2Deg (double rad) | 
| Convert radians to degrees for a single value.  | |
| template<size_t N> | |
| std::array< double, N > | flexiv::rdk::utility::Rad2Deg (const std::array< double, N > &rad_arr) | 
| Convert radians to degrees for an array.  | |
| std::vector< double > | flexiv::rdk::utility::Rad2Deg (const std::vector< double > &rad_vec) | 
| Convert radians to degrees for a vector.  | |
| template<typename T > | |
| std::string | flexiv::rdk::utility::Vec2Str (const std::vector< T > &vec, size_t decimal=3, const std::string &separator=" ") | 
| Convert an std::vector to a string.  More... | |
| template<typename T , size_t N> | |
| std::string | flexiv::rdk::utility::Arr2Str (const std::array< T, N > &arr, size_t decimal=3, const std::string &separator=" ") | 
| Convert an std::array to a string.  More... | |
| std::string | flexiv::rdk::utility::FlexivTypes2Str (const rdk::FlexivDataTypes &variant, size_t decimal=3, const std::string &separator=" ") | 
| Convert the commonly used std::variant to a string.  More... | |
| bool | flexiv::rdk::utility::ProgramArgsExistAny (int argc, char **argv, const std::vector< std::string > &ref_strings) | 
| Check if any provided strings exist in the program arguments.  More... | |
| bool | flexiv::rdk::utility::ProgramArgsExist (int argc, char **argv, const std::string &ref_strings) | 
| Check if one specific string exists in the program arguments.  More... | |
Definition in file utility.hpp.
      
  | 
  inline | 
Convert an std::array to a string.
| [in] | arr | std::array of any type and size. | 
| [in] | decimal | Decimal places to keep for each floating-point number in the array. | 
| [in] | separator | Character to separate between numbers. | 
Definition at line 101 of file utility.hpp.
      
  | 
  inline | 
Convert the commonly used std::variant to a string.
| [in] | variant | std::variant used by multiple rdk::Robot functions. | 
| [in] | decimal | Decimal places to keep for each floating-point number in the variant. | 
| [in] | separator | Character to separate between numbers in the vector. | 
Definition at line 116 of file utility.hpp.
      
  | 
  inline | 
Check if one specific string exists in the program arguments.
| [in] | argc | Argument count passed to main() of the program. | 
| [in] | argv | Argument vector passed to main() of the program, with argv[0] being the program name. | 
| [in] | ref_strings | Reference string to check against. | 
Definition at line 176 of file utility.hpp.
      
  | 
  inline | 
Check if any provided strings exist in the program arguments.
| [in] | argc | Argument count passed to main() of the program. | 
| [in] | argv | Argument vector passed to main() of the program, where argv[0] is the program name. | 
| [in] | ref_strings | Reference strings to check against. | 
Definition at line 156 of file utility.hpp.
      
  | 
  inline | 
Convert quaternion to Euler angles with ZYX axis rotations.
| [in] | quat | Quaternion input in [w,x,y,z] order. | 
Definition at line 24 of file utility.hpp.
      
  | 
  inline | 
Convert an std::vector to a string.
| [in] | vec | std::vector of any type and size. | 
| [in] | decimal | Decimal places to keep for each floating-point number in the vector. | 
| [in] | separator | Character to separate between numbers. | 
Definition at line 78 of file utility.hpp.