|
GKD.RoboCtrl
|
控制链,将多个控制器串联组合。 更多...
控制链,将多个控制器串联组合。
| Cs | 控制器类型参数包 |
在文件 controller.hpp 第 32 行定义.
#include <controller.hpp>
Public 类型 | |
| template<std::size_t N> | |
| using | state_type_n = typename std::tuple_element< N, std::tuple< typename Cs::state_type... > >::type |
| template<std::size_t N> | |
| using | input_type_n = typename std::tuple_element< N, std::tuple< typename Cs::input_type... > >::type |
| using | state_type = state_type_n< sizeof...(Cs) - 1 > |
| using | input_type = input_type_n< 0 > |
| using | params_type = std::tuple< typename Cs::params_type... > |
Public 成员函数 | |
| control_chain (Cs &&... cs) | |
| 直接以控制器实例初始化。 | |
| control_chain (params_type &¶ms) | |
| 使用各控制器的参数构造实例。 | |
| void | update (const input_type &input) |
| 推动控制链一次,依次更新所有控制器。 | |
| const state_type & | state () const |
| 读取链路末尾控制器的状态。 | |
Public 属性 | |
| std::tuple< Cs... > | controllers_ |
| using roboctrl::utils::control_chain< Cs >::input_type = input_type_n<0> |
在文件 controller.hpp 第 42 行定义.
| using roboctrl::utils::control_chain< Cs >::input_type_n = typename std::tuple_element<N, std::tuple<typename Cs::input_type...> >::type |
在文件 controller.hpp 第 39 行定义.
| using roboctrl::utils::control_chain< Cs >::params_type = std::tuple<typename Cs::params_type...> |
在文件 controller.hpp 第 43 行定义.
| using roboctrl::utils::control_chain< Cs >::state_type = state_type_n<sizeof...(Cs) - 1> |
在文件 controller.hpp 第 41 行定义.
| using roboctrl::utils::control_chain< Cs >::state_type_n = typename std::tuple_element<N, std::tuple<typename Cs::state_type...> >::type |
在文件 controller.hpp 第 36 行定义.
|
inlineexplicit |
直接以控制器实例初始化。
在文件 controller.hpp 第 50 行定义.
|
inlineexplicit |
使用各控制器的参数构造实例。
在文件 controller.hpp 第 56 行定义.
|
inline |
读取链路末尾控制器的状态。
在文件 controller.hpp 第 78 行定义.
|
inline |
| std::tuple<Cs...> roboctrl::utils::control_chain< Cs >::controllers_ |
在文件 controller.hpp 第 45 行定义.