- 3.0.2 optimal control module.
StateFeedbackPolicyHandler.h
Go to the documentation of this file.
1 /**********************************************************************************************************************
2 This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich.
3 Licensed under the BSD-2 license (see LICENSE file in main directory)
4  **********************************************************************************************************************/
5 
6 #pragma once
7 
8 namespace ct {
9 namespace optcon {
10 
12 template <size_t STATE_DIM, size_t CONTROL_DIM, typename SCALAR>
13 class StateFeedbackPolicyHandler : public PolicyHandler<core::StateFeedbackController<STATE_DIM, CONTROL_DIM, SCALAR>,
14  STATE_DIM,
15  CONTROL_DIM,
16  SCALAR>
17 {
18 public:
19  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
20 
22 
24 
26 
27  virtual void designWarmStartingPolicy(const SCALAR& delay,
28  const SCALAR& newTimeHorizon,
29  StateFeedbackController_t& policy) override;
30 
38  virtual void truncateSolutionFront(const SCALAR& delay,
39  StateFeedbackController_t& policy,
40  SCALAR& effectivelyTruncated) override;
41 
42 private:
43  SCALAR dt_;
44 };
45 
46 } // namespace optcon
47 } // namespace ct
Definition: PolicyHandler.h:12
StateFeedbackPolicyHandler(const SCALAR &dt)
Definition: StateFeedbackPolicyHandler-impl.h:12
the default policy handler for iLQR
Definition: StateFeedbackPolicyHandler.h:13
virtual void truncateSolutionFront(const SCALAR &delay, StateFeedbackController_t &policy, SCALAR &effectivelyTruncated) override
Definition: StateFeedbackPolicyHandler-impl.h:92
const double dt
Definition: LQOCSolverTiming.cpp:18
CppAD::AD< CppAD::cg::CG< double > > SCALAR
virtual ~StateFeedbackPolicyHandler()
Definition: StateFeedbackPolicyHandler-impl.h:17
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef core::StateFeedbackController< STATE_DIM, CONTROL_DIM, SCALAR > StateFeedbackController_t
Definition: StateFeedbackPolicyHandler.h:21
virtual void designWarmStartingPolicy(const SCALAR &delay, const SCALAR &newTimeHorizon, StateFeedbackController_t &policy) override
Definition: StateFeedbackPolicyHandler-impl.h:22