#include "sot/core/device.hh"
#include <iostream>
#include <sot/core/debug.hh>
#include <sot/core/macros.hh>
#include <sot/core/integrator.hh>
#include <dynamic-graph/all-commands.h>
#include <dynamic-graph/factory.h>
#include <dynamic-graph/linear-algebra.h>
#include <dynamic-graph/real-time-logger.h>
#include <Eigen/Geometry>
#include <pinocchio/multibody/liegroup/special-euclidean.hpp>
#include <sot/core/matrix-geometry.hh>
Go to the source code of this file.
|  | 
| double | saturateBounds (double &val, const double &lower, const double &upper) | 
|  | 
◆ CHECK_BOUNDS
      
        
          | #define CHECK_BOUNDS | ( |  | val, | 
        
          |  |  |  | lower, | 
        
          |  |  |  | upper, | 
        
          |  |  |  | what, | 
        
          |  |  |  | eps | 
        
          |  | ) |  |  | 
      
 
Value:for (
int i = 0; 
i < val.size(); ++
i) {                                     \
     double old = val(i);                                                     \
      std::ostringstream oss;                                                \
      oss << 
"Robot " what 
" bound violation at DoF " << 
i << 
": requested " \
          << old << " but set " << val(i) << '\n';                           \
      SEND_ERROR_STREAM_MSG(oss.str());                                      \
    }                                                                        \
  }
double saturateBounds(double &val, const double &lower, const double &upper)
Definition at line 57 of file device.cpp.
 
 
◆ ENABLE_RT_LOG
◆ saturateBounds()
  
  | 
        
          | double saturateBounds | ( | double & | val, |  
          |  |  | const double & | lower, |  
          |  |  | const double & | upper |  
          |  | ) |  |  |  | inline |