crocoddyl  1.9.0
Contact RObot COntrol by Differential DYnamic programming Library (Crocoddyl)
callbacks.hpp
1 // BSD 3-Clause License
3 //
4 // Copyright (C) 2019, LAAS-CNRS
5 // Copyright note valid unless otherwise stated in individual files.
6 // All rights reserved.
8 
9 #ifndef CROCODDYL_CORE_UTILS_CALLBACKS_HPP_
10 #define CROCODDYL_CORE_UTILS_CALLBACKS_HPP_
11 
12 #include <iostream>
13 #include <iomanip>
14 
15 #include "crocoddyl/core/solver-base.hpp"
16 
17 namespace crocoddyl {
18 
19 enum VerboseLevel { _1 = 0, _2 };
21  public:
22  explicit CallbackVerbose(VerboseLevel level = _1);
23  ~CallbackVerbose();
24 
25  virtual void operator()(SolverAbstract& solver);
26 
27  private:
28  VerboseLevel level;
29 };
30 
31 } // namespace crocoddyl
32 
33 #endif // CROCODDYL_CORE_UTILS_CALLBACKS_HPP_
crocoddyl::CallbackVerbose
Definition: callbacks.hpp:20
crocoddyl::CallbackAbstract
Abstract class for solver callbacks.
Definition: solver-base.hpp:342
crocoddyl::SolverAbstract
Abstract class for optimal control solvers.
Definition: solver-base.hpp:51
crocoddyl::CallbackVerbose::operator()
virtual void operator()(SolverAbstract &solver)
Run the callback function given a solver.
Definition: callbacks.cpp:17