nmpc_fmpc
Namespaces | Macros
FmpcSolver.hpp File Reference
#include <chrono>
#include <fstream>
#include <iostream>
#include <limits>
#include <nmpc_fmpc/MathUtils.h>
Include dependency graph for FmpcSolver.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 nmpc_fmpc
 

Macros

#define CHECK_NAN(VAR, PRINT_PREFIX)
 

Macro Definition Documentation

◆ CHECK_NAN

#define CHECK_NAN (   VAR,
  PRINT_PREFIX 
)
Value:
if(VAR.array().isNaN().any() || VAR.array().isInf().any()) \
{ \
if(print_level >= 3) \
{ \
std::cout << PRINT_PREFIX << #VAR << " contains NaN or infinity: " << VAR.transpose() << std::endl; \
} \
return true; \
}

Definition at line 10 of file FmpcSolver.hpp.