iDynTree/Utils.h file

Namespaces

namespace iDynTree

Classes

struct iDynTree::IndexRange
Simple structure describing a range of rows or columns in a vector or a matrix.

Enums

enum MatrixStorageOrdering { RowMajor, ColumnMajor }
Enum describing the possible matrix storage ordering.

Functions

void assertWoAbort(const char* semCheck, const char* file, const char* func, int line)
Function embedding the semantic checks.
auto checkEqualOrUnknown(const int op1, const int op2) -> bool
Helper class for semantic checking.
void reportError(const char* className, const char* methodName, const char* errorMessage)
Helper function for reporting error if the semantic check fails.
auto reportErrorIf(bool condition, const char* className_methodName, const char* errorMessage) -> bool
Call report error if condition is true.
void reportWarning(const char* className, const char* methodName, const char* errorMessage)
Helper function for reporting warnings in iDynTree.
void reportInfo(const char* className, const char* methodName, const char* message)
Helper function for reporting information messages in iDynTree.
void reportDebug(const char* className, const char* methodName, const char* message)
Helper function for reporting debug messages in iDynTree.
auto deg2rad(const double valueInDeg) -> double
Convert a double from degrees to radians.
auto rad2deg(const double valueInRad) -> double
Convert a double from radians to degree.
auto checkDoublesAreEqual(const double& val1, const double& val2, double tol = DEFAULT_TOL) -> bool
Check whether two doubles are equal given a tolerance tol.

Variables

IDYNTREE_CORE_EXPORT int UNKNOWN
IDYNTREE_CORE_EXPORT double DEFAULT_TOL
Default tolerance for methods with a tolerance, setted to 1e-10.

Defines

#define IDYNTREE_UNUSED(var)
Macro to suppress unused variable warnings.
#define IDYNTREE_DEPRECATED
Macro to deprecate functions and methods.
#define IDYNTREE_DEPRECATED_WITH_MSG(msg)

Enum documentation

enum MatrixStorageOrdering

Enum describing the possible matrix storage ordering.

Enumerators
RowMajor

Row Major ordering, i.e. matrix is serialized row by row

ColumnMajor

Column Major ordering, i.e. matrix is serialized row by column

Function documentation

void assertWoAbort(const char* semCheck, const char* file, const char* func, int line)

Function embedding the semantic checks.

This function can throw an exception if the semantic check detects an error (returns False).

bool checkEqualOrUnknown(const int op1, const int op2)

Helper class for semantic checking.

Return true if two values are equal, or if one of the two is unknown All negative values are used for represent an unknown value.

Define documentation

#define IDYNTREE_UNUSED(var)

Macro to suppress unused variable warnings.

see http://stackoverflow.com/a/4851173