crocoddyl 1.9.0
Contact RObot COntrol by Differential DYnamic programming Library (Crocoddyl)
 
Loading...
Searching...
No Matches
callbacks.hpp
1
2// 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
17namespace crocoddyl {
18
19enum VerboseLevel { _1 = 0, _2 };
21 public:
22 explicit CallbackVerbose(VerboseLevel level = _1);
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_
Abstract class for solver callbacks.
virtual void operator()(SolverAbstract &solver)
Run the callback function given a solver.
Definition: callbacks.cpp:17
Abstract class for optimal control solvers.
Definition: solver-base.hpp:51